about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-09-09 13:24:44 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-09-09 13:24:44 -0500
commit2a7c53f307fdd9a1525f5a78fbf2209504873903 (patch)
treef8cc2b5cc377668bab725c316a3ef95708c95b72
parent46524d85d81367a4204cf95395c96a204b3b3b02 (diff)
downloadvoidsky-2a7c53f307fdd9a1525f5a78fbf2209504873903.tar.zst
Reduce the frequency of accidental visual triggers of touchable items
-rw-r--r--src/view/com/util/Link.tsx6
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>
   )