From a2d80e8752ad818f60fa1aa72928e381460e918b Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 4 Jul 2026 22:26:25 +0200 Subject: [PATCH] fix(map): clear the hover card on marker click and camera moves (#1404) Clicking an off-center place recenters the map under a stationary cursor, so mouseout/mouseleave never fires and the hover card sticks. Clear it on marker click and on movestart, and suppress re-shows while the camera is animating (marker rebuilds re-fire mouseenter mid-pan). feat(map): long-press + plain right-click add-place on GL maps (#1398) The GL providers only bound middle-click, so mobile had no way to add a place at a position (and Macs have no middle button). Add a 600ms touch long-press with move tolerance and the map contextmenu event - both GL libs suppress it while the right-button rotate/pitch drag is active, so the gesture keeps winning. --- client/src/components/Map/MapView.test.tsx | 42 +++++- client/src/components/Map/MapView.tsx | 30 ++++- client/src/components/Map/MapViewGL.test.tsx | 132 ++++++++++++++++++- client/src/components/Map/MapViewGL.tsx | 97 ++++++++++++-- 4 files changed, 287 insertions(+), 14 deletions(-) diff --git a/client/src/components/Map/MapView.test.tsx b/client/src/components/Map/MapView.test.tsx index 9149df22e..b1cd71ea5 100644 --- a/client/src/components/Map/MapView.test.tsx +++ b/client/src/components/Map/MapView.test.tsx @@ -29,7 +29,9 @@ vi.mock('react-leaflet', () => ({ >