Hi, again )! Noticed a bug reproduced on your official demo
Bug: Auto-focus on message input opens virtual keyboard on mobile (android by the way, Chrome)
When opening a conversation on a mobile device, the message input automatically receives focus, which triggers the virtual keyboard. This causes the page to jump/scroll and covers half the screen — even when the user only wants to read the conversation, not reply.
Steps to reproduce:
Suggested fix: only apply auto-focus on devices with a fine pointer (e.g. check window.matchMedia('(pointer: fine)') before calling focus()), and consider focus({ preventScroll: true }) to avoid layout jumps.
Bug: Auto-focus on message input opens virtual keyboard on mobile (android by the way, Chrome)
When opening a conversation on a mobile device, the message input automatically receives focus, which triggers the virtual keyboard. This causes the page to jump/scroll and covers half the screen — even when the user only wants to read the conversation, not reply.
Steps to reproduce:
- On a mobile device (tested on Android/Chrome), open any conversation in Immersive Messenger.
- The keyboard pops up immediately and the page layout shifts.
Suggested fix: only apply auto-focus on devices with a fine pointer (e.g. check window.matchMedia('(pointer: fine)') before calling focus()), and consider focus({ preventScroll: true }) to avoid layout jumps.
