From afe35651559302a1ee4e677259175f17296a3ae3 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Fri, 19 Jun 2026 00:02:13 +0200 Subject: [PATCH] fix(map): optimize hit areas for desktop mouse clusters and add touch events for mobile responsiveness --- components/blocks/InteractiveGermanyMap.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/components/blocks/InteractiveGermanyMap.tsx b/components/blocks/InteractiveGermanyMap.tsx index 8a0f74259..c28856e8c 100644 --- a/components/blocks/InteractiveGermanyMap.tsx +++ b/components/blocks/InteractiveGermanyMap.tsx @@ -165,10 +165,12 @@ export function InteractiveGermanyMap({ {/* Minor Location Markers (The 100+ generic projects) */} - {finalLocations.filter(l => l.type === 'minor_node').map((loc, idx) => ( + {finalLocations.filter(l => l.type === 'minor_node').map((loc, idx) => { + const isActive = activeLocation === loc; + return (
handleMouseEnter(loc)} onMouseLeave={handleMouseLeave} + onTouchStart={() => handleMouseEnter(loc)} onClick={() => handleMouseEnter(loc)} > -
+
- ))} + )})} {/* Major Location Markers (HQ, Branch, Project) */} {finalLocations.filter(l => l.type !== 'minor_node').map((loc, idx) => { @@ -192,10 +195,11 @@ export function InteractiveGermanyMap({ return (
handleMouseEnter(loc)} onMouseLeave={handleMouseLeave} + onTouchStart={() => handleMouseEnter(loc)} onClick={() => handleMouseEnter(loc)} > {/* Ping Animation for HQ / Branch */}