You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(examples): pin opened example to viewport bottom (button visible, no jump)
Restores the original correct end state — the whole example in view with the
clicked button still visible just above it — without the old delayed jump.
The subtlety: a single scroll on open lands wrong because the layout settles over
the first few hundred ms (header/Monaco panels reserving height; async diagram
images above the example loading and pushing it down). A smooth scroll here also
inherits the page's `scroll-behavior: smooth`, animates ~1s, and gets interrupted
mid-animation. So: re-align INSTANTLY to block:"end" each frame for a short (~700ms)
window — instant re-aligns are imperceptible, so the example just stays pinned to
the bottom as the page settles instead of jumping a second later. Bail immediately
on any user wheel/touch/keydown so it never fights the user.
Verified: example fully in view + bottom-aligned + clicked button visible, and no
delayed scroll after the window.
0 commit comments