From 53dc82c0f670577ce9c9a46fbbb828b9d12eaccd Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Fri, 10 Nov 2023 08:20:07 -0800 Subject: [PATCH] Convert tap gesture coordinate to location --- Meshtastic/Views/Nodes/MeshMap.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Meshtastic/Views/Nodes/MeshMap.swift b/Meshtastic/Views/Nodes/MeshMap.swift index de21cb0d..e84c902e 100644 --- a/Meshtastic/Views/Nodes/MeshMap.swift +++ b/Meshtastic/Views/Nodes/MeshMap.swift @@ -151,6 +151,11 @@ struct MeshMap: View { } } } + .onLongPressGesture(minimumDuration: 0.5, maximumDistance: 100, pressing: { + pressing in + print(pressing) + + }, perform: { value in }) .onTapGesture(perform: { screenCoord in newWaypointLocation = reader.convert(screenCoord, from: .local) print("Tapped at \(newWaypointLocation)")