Skip to content

keyboard send fix#29235

Merged
chrisnojima merged 2 commits into
nojima/HOTPOT-next-670-clean-2from
nojima/HOTPOT-send-fix
May 22, 2026
Merged

keyboard send fix#29235
chrisnojima merged 2 commits into
nojima/HOTPOT-next-670-clean-2from
nojima/HOTPOT-send-fix

Conversation

@chrisnojima
Copy link
Copy Markdown
Contributor

No description provided.

…ard open

When the keyboard is open, KeyboardChatScrollView sets contentOffset.y = -(K-I)
via contentInset.top. Three issues caused the list to shift on send:
1. scrollToBottom scrolled to offset=0 instead of -(K-I)
2. maintainVisibleContentPosition autoscrollToTopThreshold=1 fired (-(K-I) <= 1)
   and scrolled to y=0, stripping the keyboard offset
3. MPV's per-insertion offset adjustment added message_height to contentOffset,
   creating a gap between the newest message and the input area

Fix: compute the correct keyboard-aware offset in scrollToBottom, disable MPV
entirely when the keyboard is visible (new messages appear naturally at the
contentInset boundary), and add a layout-effect safety net that re-scrolls to
bottom when new messages arrive while the keyboard is open.
@chrisnojima chrisnojima merged commit ef0b580 into nojima/HOTPOT-next-670-clean-2 May 22, 2026
@chrisnojima chrisnojima deleted the nojima/HOTPOT-send-fix branch May 22, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant