Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scroll margins #134

Merged
merged 3 commits into from
Sep 4, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add README description
  • Loading branch information
max-sym authored and simonwep committed Sep 4, 2021
commit 7b5c005d447998c78c6315c62a8be04a34e8fb6f
7 changes: 6 additions & 1 deletion packages/vanilla/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,12 @@ const selection = new SelectionArea({

// Browsers handle mouse-wheel events differently, this number will be used as
// numerator to calculate the mount of px while scrolling manually: manualScrollSpeed / scrollSpeedDivider.
manualSpeed: 750
manualSpeed: 750,

// This property defines the virtual inset margins from the borders of the container
// component that, when crossed by the mouse/touch, trigger the scrolling. Useful for
// fullscreen containers.
startScrollMargins: {x: 0, y: 0}
}
},

Expand Down