Skip to content

feat(android): keep the caret above the keyboard in page mode - #47

Open
SectionTN wants to merge 1 commit into
feat/page-keyboard-corefrom
feat/page-keyboard-android
Open

SectionTN wants to merge 1 commit into
feat/page-keyboard-corefrom
feat/page-keyboard-android

Conversation

@SectionTN

Copy link
Copy Markdown
Owner

with scrollEnabled={false}, avoidKeyboard put the keyboard into the editor's own bottom inset, so the editor scrolled its text inside its box and hid its first lines while the page stayed put. the editor now leaves that inset to scrolling editors and scrolls its nearest vertical scroller instead: on every frame of the keyboard animation, before the draw of a caret move, and when the scroller changes size, so the caret row rides up with the keyboard.

while the keyboard animates, the tracker ignores the insets call that already carries the end state, so the page follows the animation frames instead of jumping to the end first. a tap also no longer lets the ScrollView jump 359 px to the editor's top before the keyboard opens, and keyboardOffset raises the keyboard's top in both modes.

stacked on #45 (its own commits)

With scrollEnabled off, avoidKeyboard put the keyboard into the editor's own bottom inset, so the
editor scrolled its text inside its box and hid its first lines while the page stayed put. The
editor now leaves that inset to scrolling editors and scrolls its nearest vertical scroller
instead, on every frame of the keyboard animation, before the draw of a caret move and when the
scroller changes size, so the caret row rides up with the keyboard. A tap no longer lets the
ScrollView jump 359 px to the editor's top before the keyboard opens, and keyboardOffset raises
the keyboard's top in both modes.
@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cbc0ab1a-3982-443e-926d-994e099f7676

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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