From f2b7c397ff7c1bb46067a6f3bb70ad2b7b3b4786 Mon Sep 17 00:00:00 2001 From: Hailey Date: Sun, 6 Oct 2024 14:17:50 -0700 Subject: [PATCH] try different delay --- src/view/com/util/Link.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/view/com/util/Link.tsx b/src/view/com/util/Link.tsx index 5b1cd5eef0..4665311509 100644 --- a/src/view/com/util/Link.tsx +++ b/src/view/com/util/Link.tsx @@ -23,7 +23,7 @@ import { linkRequiresWarning, } from '#/lib/strings/url-helpers' import {TypographyVariant} from '#/lib/ThemeContext' -import {isWeb} from '#/platform/detection' +import {isAndroid, isWeb} from '#/platform/detection' import {useModalControls} from '#/state/modals' import {useOpenLink} from '#/state/preferences/in-app-browser' import {WebAuxClickWrapper} from '#/view/com/util/WebAuxClickWrapper' @@ -115,7 +115,8 @@ export const Link = memo(function Link({ {...props} android_ripple={{ color: t.atoms.bg_contrast_25.backgroundColor, - }}> + }} + unstable_pressDelay={isAndroid ? 20 : undefined}> {/* @ts-ignore web only -prf */} {children ? children : {title || 'link'}}