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

Scrolling broken on long posts while input has keyboard focus #2774

Open
guarani opened this issue Nov 3, 2020 · 2 comments
Open

Scrolling broken on long posts while input has keyboard focus #2774

guarani opened this issue Nov 3, 2020 · 2 comments
Labels
HACK week HACK week June 2020 [OS] Android [Type] Bug Something isn't working Writing Flow

Comments

@guarani
Copy link
Contributor

guarani commented Nov 3, 2020

Describe the bug
If an input has keyboard focus, scrolling through large posts it's sometimes impossible to scroll far before the scroll position is reset. It appears that the scroll is reset sometime after the focused input goes off-screen.

To Reproduce

  1. Open the demo Gutenberg Android app showing the default content
  2. Scroll down to the bottom and put keyboard focus in a Paragraph or other focusable block
  3. Start scrolling up to the top of the editor content and notice that soon after the focusable block is no longer on-screen, the editor moves the scroll position back down so it's nearly impossible to scroll to the top of a post

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

Screen recording on Android

Smartphone (please complete the following information):

Additional context
The workaround to scroll to the top of a long post is to first ensure that no input has keyboard focus.

@mzorz
Copy link
Contributor

mzorz commented Apr 1, 2021

I also noticed this issue with cursor positioning with the this test post: when a paragraph block is selected and the cursor is blinking there, scrolling out of it is super hard. I tried scrolling all the way up and the editor insists in bringing focus to the selected block. Found out this while trying to reproduce and investigate the issue tracked in wordpress-mobile/WordPress-Android#13361

@guarani
Copy link
Contributor Author

guarani commented Sep 16, 2021

Noting this is still reproducible on the latest Gutenberg trunk, WordPress/gutenberg@50618d5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HACK week HACK week June 2020 [OS] Android [Type] Bug Something isn't working Writing Flow
Projects
None yet
Development

No branches or pull requests

2 participants