Skip to content

Commit

Permalink
Fix tripple/more touches to seek (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoriya committed Apr 25, 2024
1 parent a2a5842 commit f871f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/packages/ui/src/player/components/hover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f871f4e

Please sign in to comment.