Remove unnecessary 90ms latency from tap events on android (#10392)
This commit is contained in:
@@ -30,7 +30,7 @@ import {useModalControls} from '#/state/modals'
|
|||||||
import {WebAuxClickWrapper} from '#/view/com/util/WebAuxClickWrapper'
|
import {WebAuxClickWrapper} from '#/view/com/util/WebAuxClickWrapper'
|
||||||
import {useTheme} from '#/alf'
|
import {useTheme} from '#/alf'
|
||||||
import {useGlobalDialogsControlContext} from '#/components/dialogs/Context'
|
import {useGlobalDialogsControlContext} from '#/components/dialogs/Context'
|
||||||
import {IS_ANDROID, IS_WEB} from '#/env'
|
import {IS_WEB} from '#/env'
|
||||||
import {router} from '../../../routes'
|
import {router} from '../../../routes'
|
||||||
import {PressableWithHover} from './PressableWithHover'
|
import {PressableWithHover} from './PressableWithHover'
|
||||||
import {Text} from './text/Text'
|
import {Text} from './text/Text'
|
||||||
@@ -129,8 +129,7 @@ export const Link = memo(function Link({
|
|||||||
{...props}
|
{...props}
|
||||||
android_ripple={{
|
android_ripple={{
|
||||||
color: t.atoms.bg_contrast_25.backgroundColor,
|
color: t.atoms.bg_contrast_25.backgroundColor,
|
||||||
}}
|
}}>
|
||||||
unstable_pressDelay={IS_ANDROID ? 90 : undefined}>
|
|
||||||
{/* @ts-ignore web only -prf */}
|
{/* @ts-ignore web only -prf */}
|
||||||
<View style={style} href={anchorHref}>
|
<View style={style} href={anchorHref}>
|
||||||
{children ? children : <Text>{title || 'link'}</Text>}
|
{children ? children : <Text>{title || 'link'}</Text>}
|
||||||
|
|||||||
Reference in New Issue
Block a user