diff --git a/client/src/components/Map/MapView.tsx b/client/src/components/Map/MapView.tsx index 5d6b7e7..2a89f6a 100644 --- a/client/src/components/Map/MapView.tsx +++ b/client/src/components/Map/MapView.tsx @@ -422,6 +422,8 @@ export const MapView = memo(function MapView({ }) }, []) + const isTouchDevice = typeof window !== 'undefined' && ('ontouchstart' in window || navigator.maxTouchPoints > 0) + const markers = useMemo(() => places.map((place) => { const isSelected = place.id === selectedPlaceId const cacheKey = place.google_place_id || place.osm_id || `${place.lat},${place.lng}` @@ -444,6 +446,7 @@ export const MapView = memo(function MapView({ offset={[0, 0]} opacity={1} className="map-tooltip" + permanent={isTouchDevice && isSelected} >