Page MenuHomePhabricator

Scroll back to cursor: As a user of the editing interface, when I have scrolled away from my cursor and then type something, I would like to be brought back to the cursor so that I know which area of the text I have affected
Closed, ResolvedPublic

Description

Why are we doing this?

Currently it is possible to type in an area that is not visible to the user (eg. higher or lower than the viewport) this could lead to a user not understanding that the keyboard is working or simply making mistakes that might be hard to find later.

User story

As a user of the editing interface, when I have scrolled away from my cursor and then type something, I would like to be brought back to the cursor so that I know which area of the text I have affected

Proposed solution

If the current cursor position is not visible in the view port when the user begins typing, scroll so that the cursor is visible.

Example from the Bear app

Event Timeline

• cmadeo triaged this task as Medium priority.

@cmadeo the PR above also fixes rotation and arrow button cases :)

@Mhurd this is working really well, thank you!
Would it be possible to scroll up to the cursor point though, right now it's jumping directly there which I worry might be a bit disorienting for users.

Thanks!