mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
Scroll start logic should work when overscroll too
This commit is contained in:
parent
1b6348fb08
commit
baf139762c
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ export default function useScroll({
|
|||
previousScrollStart = scrollStart;
|
||||
}
|
||||
|
||||
setReachStart(scrollStart === 0);
|
||||
setReachStart(scrollStart <= 0);
|
||||
setReachEnd(scrollStart + clientDimension >= scrollDimension);
|
||||
setNearReachStart(scrollStart <= distanceFromStartPx);
|
||||
setNearReachEnd(
|
||||
|
|
Loading…
Reference in a new issue