Something went wrong. Try again.
Generate web slides from Comark
Something went wrong. Try again.
fix(runtime): use host.scrollTo for snap-aware smooth scrolling master
scrollIntoView({ behavior: 'smooth' }) on a child element can race with the parent's scroll-snap-type:y mandatory in some browsers and collapse to an instant snap. Calling host.scrollTo with an explicit offset gives the smooth path a direct, snap-friendly target. Both scrollToSlide (smooth, used by nav events) and jumpToSlide (instant, used by initial state entry) switched to this approach. Sampled across 12 frames, scrollTop transitions 0 → 24 → 203 → 552 → 712 → 797 → 847 → 877 → 892 → 900 over ~490ms — classic ease-out animation curve. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Author
graham.systems Co-author Claude Opus 4.7 Date (May 15, 2026, 3:14 AM UTC) Commit 35102c55 35102c55a29c544caeb683772ce4fb4a332cd50b Parent 36ebb53c 36ebb53c0f8c592ef5e9876ddad703c5069d80a0