Skip to content

fix: scroll chatbox to cursor on newline insertion#602

Merged
jonathanlab merged 1 commit intomainfrom
fix/chatbox-scroll-on-newline
Jan 26, 2026
Merged

fix: scroll chatbox to cursor on newline insertion#602
jonathanlab merged 1 commit intomainfrom
fix/chatbox-scroll-on-newline

Conversation

@jonathanlab
Copy link
Copy Markdown
Contributor

Summary

  • Fixes the chatbox not scrolling when new lines are inserted via shift+enter
  • Adds scrollIntoView() call in the editor's onUpdate handler to keep the cursor visible

Closes #499

Test Plan

  • Fill the chatbox with content until it requires scrolling
  • Press shift+enter to create a new line
  • Verify the view automatically scrolls to show the cursor

When pressing shift+enter to create new lines in the chatbox, the
scrollview now automatically scrolls to keep the cursor visible.
@jonathanlab jonathanlab merged commit 6ae42d3 into main Jan 26, 2026
12 checks passed
@jonathanlab jonathanlab deleted the fix/chatbox-scroll-on-newline branch January 26, 2026 13:08
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.

New lines in chatbox won't shift down scrollview

2 participants