Repository navigation
Draw the scrollbar with OverlayScrollbars (3.2.0) - #36
Merged
Merged
Conversation
The handle was drawn by our own code and could not be dragged or clicked, and the native scrollbar stayed hidden. OverlayScrollbars keeps native scrolling (window.scrollTo, keyboard, touch), moves its handle with a ScrollTimeline where supported, and adds drag, track click and auto-hide. The document uses <html> as its viewport and an element is its own viewport, so no app DOM is wrapped. The provider still computes the track: between fixed headers, footers and tab bars, fitted to the scroll target's content box, following whichever scroller moved. The slot is placed once per layout change instead of on every scroll. edgeBounce now scales the drawn handle. OverlayScrollbars' base CSS is bundled into dist/style.css, so apps still import a single style.css. Tests cover track placement and source switching with a stub scrollbar. Release 3.2.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checked in the demo (Chrome): track 52–711px between header and tab bar, drag 150 frame px → scrollY 100→571 (expected 570), track click scrolls one viewport, route push/back keeps scroll restore and a single scrollbar instance.
npm test 58 pass, check, build, verify-release (packed tarball installed in a consumer), next build of the demo.
🤖 Generated with Claude Code