Fix tripple/more touches to seek (#436)

This commit is contained in:
Zoe Roux 2024-04-25 14:26:58 +02:00 committed by GitHub
parent a2a58422a0
commit f871f4e1bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {