try to reduce long-press overlaps

This commit is contained in:
ppc
2025-04-08 10:43:34 +01:00
parent 40fbf475f4
commit e39a117018
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ function ServerCard(props: { server: AMServer, navigation: any }) {
]
}
]}>
<AMUICard title={props.server.serverName} onPress={pageCallback}>
<AMUICard title={props.server.serverName} onPress={pageCallback} onLongPress={() => {}}>
<AMUICardDetail>
<Globe size={18} color="gray"/>
<Paragraph style={{color: "gray", fontFamily: "JetBrainsMono_400Regular"}}>
+1 -1
View File
@@ -21,7 +21,7 @@ export function AMUICard(props: AMUICardActionProps & AMUICardProps) {
}
return (
<TouchableOpacity disabled={props.actionDisabled} onPress={props.onPress} onLongPress={props.onLongPress}>
<TouchableOpacity disabled={props.actionDisabled} onPress={props.onPress} onLongPress={props.onLongPress} delayLongPress={150}>
<CardComponent {...props}/>
</TouchableOpacity>
);