mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 01:53:26 +00:00
105c1d337a
Collapse scrollToHash to one requestAnimationFrame loop: scroll to the target whenever it's present, retrying ~1s for it to commit and holding ~0.3s afterward so we scroll after Next's late scroll-to-top. Drops the separate wheel/touchmove/keydown abort machinery — the hold window is short enough that a user scrolling within it is a rare, brief edge, not worth the ceremony. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TpGe6QkAF4Y1HDGUD4vbke