From 8787cb7ad038b6cfa4e88e24285c7da87e6b111f Mon Sep 17 00:00:00 2001 From: thislight Date: Mon, 12 Aug 2024 11:05:20 +0800 Subject: [PATCH] PullDownToRefresh: adjust multiply rate for wheel --- src/timelines/PullDownToRefresh.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timelines/PullDownToRefresh.tsx b/src/timelines/PullDownToRefresh.tsx index 81590ea..3aa7195 100644 --- a/src/timelines/PullDownToRefresh.tsx +++ b/src/timelines/PullDownToRefresh.tsx @@ -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);