From fab5bf48a1631dead5b22e6f418ebbe42b8a4a09 Mon Sep 17 00:00:00 2001 From: Ahmidi Yasser <127498984+dexter21767-dev@users.noreply.github.com> Date: Fri, 30 Jun 2023 23:35:14 +0100 Subject: [PATCH] Update the long Press trigger time --- src/common/Button/Button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Button/Button.js b/src/common/Button/Button.js index 566355eda..feaeee738 100644 --- a/src/common/Button/Button.js +++ b/src/common/Button/Button.js @@ -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);