From 47ccb529d4bbdb416c7c2b43b08add45ba767fb9 Mon Sep 17 00:00:00 2001 From: Septicity Date: Tue, 14 Apr 2026 05:25:33 -0500 Subject: [PATCH] Make double tap gestures ignore clicks that are *too* fast (accidental, finger skidding, etc.) --- src/app/hooks/useImageGestures.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/hooks/useImageGestures.ts b/src/app/hooks/useImageGestures.ts index e748b9c7c..f779a74f2 100644 --- a/src/app/hooks/useImageGestures.ts +++ b/src/app/hooks/useImageGestures.ts @@ -128,7 +128,7 @@ export const useImageGestures = (active: boolean, step = 0.2, min = 0.1, max = 5 // Double click zoom const now = Date.now(); - if (now - lastTapRef.current < 300) { + if (now - lastTapRef.current < 300 && now - lastTapRef.current > 30) { // If two cursors are active, this isn't a double click. if (activePointers.current.size === 2) { const points = Array.from(activePointers.current.values());