Skip to content

Commit

Permalink
try different delay
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Oct 6, 2024
1 parent 45b9273 commit f2b7c39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/view/com/util/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 */}
<View style={style} href={anchorHref}>
{children ? children : <Text>{title || 'link'}</Text>}
Expand Down

0 comments on commit f2b7c39

Please sign in to comment.