Skip to content

Up/down keyboard navigation jumps horizontally #44753

@mcsf

Description

@mcsf

See also: #53416 #44055

Description

Step-by-step reproduction instructions

The horizontal caret position is not properly preserved across paragraph jumps. All three browsers behave differently. See the attached videos, in which I place the caret at the end of the last paragraph and then just press Up repeatedly.

Chrome seems to be the best-behaved browser so far:

caret-chrome.mov

Firefox gets it almost right, but then note the jump to "placeat" and then to "maxime":

caret-firefox.mov

Safari is all over the place, seemingly always setting the caret's horizontal component to match the end of the curernt paragraph:

caret-safari.mov

Screenshots, screen recording, code snippet

No response

Environment info

Gutenberg trunk, etc.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Browser IssuesIssues or PRs that are related to browser specific problems[Feature] Writing FlowBlock selection, navigation, splitting, merging, deletion...[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions