Skip to content

Conversation

@RoboErikG
Copy link
Contributor

The basics

The details

Resolves

Fixes #8935

Proposed Changes

Add checks for RTL and update the bounds to keep the right or the left in the viewport depending on whether we're in RTL or LTR.

Reason for Changes

Previously, blocks that were too long to fit in the viewport would jump around or always prefer the left side be kept in bounds regardless of RTL.

With the changes, RTL is now handled correctly:
Screen recording 2025-04-28 2.57.15 PM.webm
Screen recording 2025-04-28 2.56.08 PM.webm

Test Coverage

Documentation

Additional Information

@RoboErikG RoboErikG added the PR: fix Fixes a bug label Apr 28, 2025
@RoboErikG RoboErikG requested a review from a team as a code owner April 28, 2025 22:16
@RoboErikG RoboErikG requested review from gonfunko and rachel-fenichel and removed request for rachel-fenichel April 28, 2025 22:16
@RoboErikG RoboErikG merged commit dee27b9 into RaspberryPiFoundation:rc/v12.0.0 Apr 28, 2025
8 of 12 checks passed
@RoboErikG RoboErikG deleted the scroll-into-bounds branch June 23, 2025 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants