From 0a012dcd8d21807b0448f2e03917857f551d4e0b Mon Sep 17 00:00:00 2001 From: lawvs <18554747+lawvs@users.noreply.github.com> Date: Mon, 23 Jun 2025 16:23:44 +0800 Subject: [PATCH] fix: prevent unnecessary scroll when not dragging in PagerList --- apps/mobile/src/modules/screen/PagerList.ios.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/mobile/src/modules/screen/PagerList.ios.tsx b/apps/mobile/src/modules/screen/PagerList.ios.tsx index cad0ba03a..893dc8eb7 100644 --- a/apps/mobile/src/modules/screen/PagerList.ios.tsx +++ b/apps/mobile/src/modules/screen/PagerList.ios.tsx @@ -49,6 +49,7 @@ export function PagerList({ ref={pagerRef} initialPageIndex={initialPageIndex} onScroll={(percent, direction, position) => { + if (!dragging) return const progress = clamp( percent * (direction === "left" ? -1 : direction === "right" ? 1 : 0) + position, 0,