Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page-down unusual behavior #678

Closed
WhiteNoiseDev opened this issue Jan 8, 2022 · 1 comment
Closed

Page-down unusual behavior #678

WhiteNoiseDev opened this issue Jan 8, 2022 · 1 comment

Comments

@WhiteNoiseDev
Copy link

@WhiteNoiseDev WhiteNoiseDev commented Jan 8, 2022

I notice that Page-up/Page-down has an unusual behavior for a text editor.

Go To https://codemirror.net/6/ and paste a long text. Press Page Down
The cursor moves to line 11 and page is scrolled down by 1 line.

On CM5, the same action moves the cursor to line 11 AND scrolls the page to line 11.

For reference, VScode moves to the last line in view (10) and doesn't scroll the page at all.

I find CM5 or VScode behavior preferable to the current 1 line scroll.

Thanks for your work.

@WhiteNoiseDev WhiteNoiseDev changed the title Page-up Page-down unusual behavior Page-down unusual behavior Jan 9, 2022
@marijnh
Copy link
Member

@marijnh marijnh commented Jan 10, 2022

Attached patch should address this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants