Skip to content

Make scrollBoundsIntoView support RTL #8935

@RoboErikG

Description

@RoboErikG

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

Currently, WorkspaceSvg.scrollBoundsIntoView only works in LTR languages and in RTL languages it still prioritizes scrolling the left side into view over the right.

Reproduction steps

  1. Add rtl: true to the injection options for keyboard navigation
  2. Create a really long math block that is wider than the viewport
  3. Use keyboard navigation to move it around

Stack trace

Screenshots

No response

Browsers

No response

Metadata

Metadata

Assignees

Labels

issue: bugDescribes why the code or behaviour is wrongissue: triageIssues awaiting triage by a Blockly team member

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions