-
-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support custom scroll options (#95)
This adds two new options which make it easier to customize the scroll behavior. `onScrollElement` which makes it possible to use a different element to bind the `onScroll` event too. `scrollOffsetFn` allows a custom function to calculate the offset rather than using the `parentRef`'s width or height.
- Loading branch information
1 parent
f9e4aac
commit 7ad4628
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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