PullDownToRefresh: adjust multiply rate for wheel
All checks were successful
/ depoly (push) Successful in 1m8s
All checks were successful
/ depoly (push) Successful in 1m8s
This commit is contained in:
parent
7b67c79bc8
commit
1e6d4933b9
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ const PullDownToRefresh: Component<{
|
|||
const handleLinkedWheel = (event: WheelEvent) => {
|
||||
const scrollTop = (event.target as HTMLElement).scrollTop;
|
||||
if (scrollTop >= 0 && scrollTop < 1) {
|
||||
ds = -(event.deltaY / window.devicePixelRatio);
|
||||
ds = -(event.deltaY / window.devicePixelRatio / 4);
|
||||
if (released) {
|
||||
released = false;
|
||||
requestAnimationFrame(updatePullDown);
|
||||
|
|
Loading…
Reference in a new issue