-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Arrow keys won't move to next paragraph until after scrolling down #44055
Comments
I'm able to reproduce the error. Attaching a screencast for reference. Screen.Recording.2022-09-12.at.12.20.02.AM.movIn the video, I"m using an input capturing tool to display me pressing the "down" button Text shown in the screencastLorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque posuere enim mauris. Quisque laoreet scelerisque elit sit amet luctus. Aenean tempor ut enim et dapibus. Sed imperdiet non ipsum id mattis. Aliquam tincidunt nisl eget lorem hendrerit, eu dapibus tortor vestibulum. Duis rutrum, lacus placerat mattis condimentum, felis nunc venenatis libero, eu dapibus nunc turpis at lacus. Quisque in feugiat justo. Nulla imperdiet, orci ac luctus scelerisque, dui est viverra orci, nec consequat justo augue at massa. Phasellus sed consectetur ipsum. Proin egestas purus magna, ut facilisis libero egestas a. Proin ut nisi vitae odio ultricies consequat ut sit amet augue. Phasellus ultricies id tellus eget tincidunt. Aenean quis faucibus risus. Fusce pellentesque eu arcu quis auctor. Etiam rutrum quis nibh in tempor. Nam efficitur lacus in nulla faucibus, at consequat est vehicula.
Nulla facilisi. Aenean eget finibus justo. Morbi non iaculis nisl, eget pharetra augue. Aliquam justo libero, tempus a eleifend eu, venenatis sed nisi. Fusce tincidunt enim quis diam commodo hendrerit. Curabitur scelerisque nisi vel sollicitudin congue. Aliquam in cursus dui. Nunc in massa tellus. Pellentesque mattis erat velit, vel mollis libero rutrum et. Mauris auctor quis lacus a porta. Integer nec hendrerit nibh. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Sed suscipit ornare massa a aliquet.
Vivamus commodo ex nec massa sollicitudin cursus. Suspendisse a ante quis ex efficitur cursus. Curabitur vitae blandit lorem. Quisque blandit est ut ligula condimentum, in ullamcorper nibh porta. Pellentesque imperdiet nulla sit amet aliquam porta. Duis nec lorem finibus, finibus lacus ut, auctor neque. In ornare nec nibh sit amet varius. Nulla cursus faucibus dolor quis ultrices. Donec a ex arcu. Cras sit amet vulputate mauris. Integer ac tellus id lectus feugiat interdum. Aliquam posuere consectetur dictum.
Aenean eu cursus lacus. Maecenas mollis suscipit massa. In hac habitasse platea dictumst. Nulla facilisi. Cras a pellentesque dolor. In rhoncus vehicula tortor, id vestibulum turpis lobortis nec. Morbi lobortis a ex a mattis. Nulla ornare varius orci in tempor. Nullam mauris nulla, interdum vel aliquet aliquam, congue quis est. Maecenas diam velit, mollis et lorem non, blandit efficitur enim. Ut faucibus varius ligula, at ullamcorper dolor feugiat sed. Quisque tincidunt massa et lacus pretium gravida. Sed vel ornare sapien, imperdiet ullamcorper risus.
Donec et hendrerit nisi. Pellentesque vel justo mi. In hac habitasse platea dictumst. Praesent iaculis odio at libero dapibus sodales. Integer enim eros, accumsan eget tellus et, consequat hendrerit enim. Nunc elementum at risus ut volutpat. Quisque ipsum ex, scelerisque a elementum et, posuere ac lectus.
Curabitur dictum purus augue, ut tempor felis pulvinar eu. Vestibulum nec odio pharetra, lacinia nisi dictum, convallis nibh. Vivamus feugiat fringilla nunc, vel vestibulum nulla congue id. Nulla facilisi. Phasellus consequat erat sed lectus maximus, non tincidunt lectus posuere. Phasellus tincidunt ornare ipsum. Etiam et ante ac erat scelerisque venenatis id eu orci. Nunc sodales neque sed consectetur vulputate. |
Thanks for looking at this @amustaque97 . Another few issues, I'm raising them here as they're related to keyboard navigation and scroll position. (Should these be added as separate issues?)
I think that at least one of the causes of these issues is that the editor seems to always be trying to make the line cursor is on roughly 8 lines down from the top of the editor window. This is easiest to see this with the Ctrl+Z issue (#3 above). |
Hi @ithinkandicode, Thank you for submitting the Issue. I would like to address this issue as well, but I think we should focus on one discussion in one issue. Regarding the list of issues you mentioned, it might be better to submit another issue if it does not already exist. |
I found that this problem also occurs with the up arrow key. When a block is adjacent to a vertical edge, the cursor doesn't move to the previous block. Perhaps this is related to the passage:
|
I was able to identify that this API returns incorrect values only when the block is adjacent to the vertical edge.
However, I have not been able to find the cause of the problem, so hopefully someone more knowledgeable about this issue will look into it. |
I hit this bug recently multiple times. |
Are you all using Safari? |
I use Firefox and Safari on osx. |
Description
If you have your cursor in a paragraph, and there are other paragraphs below it, you can press the down arrow key to move the cursor pointer down the paragraph, but it stops at that paragraph if it's at the bottom edge of the window. You have to use the mousewheel/scrollbar to move the view down, then it lets you press down again to move to the next paragraph.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
WP Version: 6.0.2
Theme: Twenty Twenty-Two (v1.2)
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: