mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-02 21:24:20 -04:00
Fix tripple/more touches to seek (#436)
This commit is contained in:
parent
a2a58422a0
commit
f871f4e1bf
@ -265,7 +265,7 @@ export const HoverTouch = ({ children, ...props }: { children: ReactNode }) => {
|
|||||||
|
|
||||||
const onAnyPress = (e: { pointerType: string; x: number }) => {
|
const onAnyPress = (e: { pointerType: string; x: number }) => {
|
||||||
touch.current.count++;
|
touch.current.count++;
|
||||||
if (touch.current.count == 2) {
|
if (touch.current.count >= 2) {
|
||||||
onDoublePress(e);
|
onDoublePress(e);
|
||||||
clearTimeout(touch.current.timeout);
|
clearTimeout(touch.current.timeout);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user