Rename _handleMapTap to _handleMapContextPress, per review comments.

This commit is contained in:
Eric Poulsen
2026-06-13 20:29:36 -07:00
parent 3009036565
commit dbd3a40bdc
+3 -3
View File
@@ -285,7 +285,7 @@ class _MapScreenState extends State<MapScreen> {
);
}
void _handleMapTap(BuildContext context, MeshCoreConnector connector, LatLng latLng) {
void _handleMapContextPress(BuildContext context, MeshCoreConnector connector, LatLng latLng) {
if (_isSelectingPoi) {
setState(() {
_isSelectingPoi = false;
@@ -729,10 +729,10 @@ class _MapScreenState extends State<MapScreen> {
}
},
onLongPress: (_, latLng) {
_handleMapTap(context, connector, latLng);
_handleMapContextPress(context, connector, latLng);
},
onSecondaryTap: (_, latLng) {
_handleMapTap(context, connector, latLng);
_handleMapContextPress(context, connector, latLng);
},
onPositionChanged: (camera, hasGesture) {
// Track zoom in half-step buckets so cluster/marker