From f871f4e1bff64ffb9c235089773e8858fdba0915 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Thu, 25 Apr 2024 14:26:58 +0200 Subject: [PATCH] Fix tripple/more touches to seek (#436) --- front/packages/ui/src/player/components/hover.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/packages/ui/src/player/components/hover.tsx b/front/packages/ui/src/player/components/hover.tsx index 6d3f70c1..df54f436 100644 --- a/front/packages/ui/src/player/components/hover.tsx +++ b/front/packages/ui/src/player/components/hover.tsx @@ -265,7 +265,7 @@ export const HoverTouch = ({ children, ...props }: { children: ReactNode }) => { const onAnyPress = (e: { pointerType: string; x: number }) => { touch.current.count++; - if (touch.current.count == 2) { + if (touch.current.count >= 2) { onDoublePress(e); clearTimeout(touch.current.timeout); } else {