-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[@mantine/hooks] use-headroom: Fix incorrect pinning logic when scrol…
…ling up (#5793) * [@mantine/hooks]: fix unstable pinning of item by `useHeadroom` on mobile devices [@mantine/hooks]: refactor the onPin and onRelease logic to prevent excessive calls of onPin * [@mantine/hooks]: fix header not pinned when scrolling up added useScrollDirection to handle if user is scrolling up and make sure the scroll is not caused by a resize event like mobile address bar showing
- Loading branch information
1 parent
2c05d5b
commit 25310bd
Showing
1 changed file
with
71 additions
and
21 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