mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 03:22:11 +00:00
Update the long Press trigger time
This commit is contained in:
parent
4f56ea01b5
commit
fab5bf48a1
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ const Button = React.forwardRef(({ className, href, disabled, children, onLongPr
|
||||||
//alert('longpress detected');
|
//alert('longpress detected');
|
||||||
onLongPress();
|
onLongPress();
|
||||||
}
|
}
|
||||||
}, 600); // values less than 600 will cause an artifact of previous menus staying on screen.
|
}, 650); // an artifact of previous menus staying on the screen will happen on Safari if the timeout was set to 600 and less, and 650 for PWA.
|
||||||
};
|
};
|
||||||
const onTouchEnd = function () {
|
const onTouchEnd = function () {
|
||||||
clearTimeout(pressTimer);
|
clearTimeout(pressTimer);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue