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