Skip to content

Examples: Fix sidebar scrolling to selected example#33023

Merged
sunag merged 1 commit intomrdoob:devfrom
sunag:dev-examples-1
Feb 19, 2026
Merged

Examples: Fix sidebar scrolling to selected example#33023
sunag merged 1 commit intomrdoob:devfrom
sunag:dev-examples-1

Conversation

@sunag
Copy link
Collaborator

@sunag sunag commented Feb 19, 2026

Related issue: #32980 (comment)

Description

Previously, element.scrollIntoView({ block: 'center' }) was used. In some scenarios (especially on mobile or specific layouts), this caused the entire page or parent containers to scroll, shifting the header or other UI elements out of view.

@sunag sunag added this to the r184 milestone Feb 19, 2026
@sunag sunag marked this pull request as ready for review February 19, 2026 06:43
@sunag sunag merged commit 8e5dc00 into mrdoob:dev Feb 19, 2026
9 checks passed
@sunag sunag deleted the dev-examples-1 branch February 19, 2026 06:45
@mrdoob
Copy link
Owner

mrdoob commented Feb 19, 2026

I'll cherry-pick to gh-pages 👌

@sunag
Copy link
Collaborator Author

sunag commented Feb 19, 2026

I just did it :)

@mrdoob
Copy link
Owner

mrdoob commented Feb 19, 2026

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants