Update the long Press trigger time

This commit is contained in:
Ahmidi Yasser 2023-06-30 23:35:14 +01:00 committed by GitHub
parent 4f56ea01b5
commit fab5bf48a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ const Button = React.forwardRef(({ className, href, disabled, children, onLongPr
//alert('longpress detected');
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 () {
clearTimeout(pressTimer);