From 7e89de0f0ef7248ae2a3e511d0ac1c12975be9c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Sat, 11 Apr 2026 00:48:41 +0200 Subject: [PATCH] Reduce map fly animation to 200ms Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/journal/app/components/RouteMapThumbnail.client.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/journal/app/components/RouteMapThumbnail.client.tsx b/apps/journal/app/components/RouteMapThumbnail.client.tsx index 829ee74..3ea476d 100644 --- a/apps/journal/app/components/RouteMapThumbnail.client.tsx +++ b/apps/journal/app/components/RouteMapThumbnail.client.tsx @@ -40,10 +40,10 @@ function FlyToSegment({ segments, highlightedDay, fullData }: { const latlngs = seg.coords.map((c) => L.latLng(c[1]!, c[0]!)); const bounds = L.latLngBounds(latlngs); if (bounds.isValid()) { - map.flyToBounds(bounds, { padding: [40, 40], duration: 0.5 }); + map.flyToBounds(bounds, { padding: [40, 40], duration: 0.2 }); } } else if (fullBoundsRef.current?.isValid()) { - map.flyToBounds(fullBoundsRef.current, { padding: [20, 20], duration: 0.5 }); + map.flyToBounds(fullBoundsRef.current, { padding: [20, 20], duration: 0.2 }); } }, [highlightedDay, segments, fullData, map]);