diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-09-09 13:24:44 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-09-09 13:24:44 -0500 |
commit | 2a7c53f307fdd9a1525f5a78fbf2209504873903 (patch) | |
tree | f8cc2b5cc377668bab725c316a3ef95708c95b72 /src | |
parent | 46524d85d81367a4204cf95395c96a204b3b3b02 (diff) | |
download | voidsky-2a7c53f307fdd9a1525f5a78fbf2209504873903.tar.zst |
Reduce the frequency of accidental visual triggers of touchable items
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/util/Link.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/view/com/util/Link.tsx b/src/view/com/util/Link.tsx index dcb8710f6..23d1bd345 100644 --- a/src/view/com/util/Link.tsx +++ b/src/view/com/util/Link.tsx @@ -21,7 +21,11 @@ export const Link = observer(function Link({ store.shell.openModal(new LinkActionsModel(href, title || href)) } return ( - <TouchableOpacity style={style} onPress={onPress} onLongPress={onLongPress}> + <TouchableOpacity + style={style} + onPress={onPress} + onLongPress={onLongPress} + delayPressIn={50}> {children ? children : <Text>{title || 'link'}</Text>} </TouchableOpacity> ) |