From 9d6eb54a4f5c52ac54e384c9e0bfd986e7817ef1 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Tue, 19 May 2026 17:09:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=88=86=E5=B8=83=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E5=9C=B0=E5=9B=BE=E7=82=B9=E5=87=BB=E6=97=B6=E7=9A=84?= =?UTF-8?q?=20flyTo=20=E6=94=BE=E5=A4=A7=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/hooks/useLeafletMap.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/frontend/hooks/useLeafletMap.ts b/frontend/hooks/useLeafletMap.ts index 9ad3ff89..65620e40 100644 --- a/frontend/hooks/useLeafletMap.ts +++ b/frontend/hooks/useLeafletMap.ts @@ -674,20 +674,6 @@ export function useLeafletMap({ const signature = getMarkerSignature(city, snapshot); const previousSignature = lastCityDataRef.current[city.name]; const selectCityFromMarker = () => { - const currentMap = mapRef.current; - currentMap?.stop(); - if (currentMap && !suspendMotionRef.current) { - const c = currentMap.getContainer(); - if (!c || c.offsetWidth <= 0 || c.offsetHeight <= 0) return; - currentMap.flyTo([city.lat, city.lon], 11, { - animate: true, - duration: 1.05, - easeLinearity: 0.22, - }); - lastMovedCityRef.current = city.name; - } else { - lastMovedCityRef.current = null; - } onSelectCityRef.current(city.name); }; const bindMarkerTouchSelect = (marker: L.Marker) => {