PullDownToRefresh: adjust multiply rate for wheel

This commit is contained in:
thislight 2024-08-12 11:05:20 +08:00
parent 7db55298a3
commit 8787cb7ad0

View file

@ -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);