Skip to content

feat(web): keep the caret above the keyboard in page mode - #46

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

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

Conversation

@SectionTN

Copy link
Copy Markdown
Owner

with scrollEnabled={false}, avoidKeyboard did nothing on the web. a tap on line 12 of an editor in a scrolling page left the caret row at 406-426 px, under a keyboard whose top was at 300. the editor now scrolls its nearest scroller by the least amount that shows the caret row inside it and above the keyboard: when the keyboard opens or resizes, on every caret move, and when the scroller changes size.

it also keeps the hidden textarea above the keyboard, so the browser never pans the page on its own, and keyboardOffset raises the keyboard's top for that scroll and for the inset of a scrolling editor.

stacked on #45 (its own commits)

With scrollEnabled off, avoidKeyboard did nothing on the web: a tap on line 12 of an editor in a
scrolling page left the caret row at 406-426 px under a keyboard whose top was at 300. The editor
now scrolls its nearest scroller the least that shows the caret row inside it and above the
keyboard, when the keyboard arrives or resizes, on every caret move and when the scroller changes
size, and keeps the hidden textarea above the keyboard so the browser never pans on its own.
keyboardOffset raises the keyboard's top for that reveal and for the inset of a scrolling editor.
@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: 238d3cd7-5d1b-4343-ab50-f95948741aeb

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