瀏覽代碼

animation small fix

Viktoriia 1 年之前
父節點
當前提交
8e4ba5a197
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/screens/InAppScreens/MapScreen/index.tsx

+ 1 - 1
src/screens/InAppScreens/MapScreen/index.tsx

@@ -395,7 +395,7 @@ const MapScreen: React.FC<MapScreenProps> = ({ navigation }) => {
       const bounds = turf.bbox(foundRegion);
       const region = calculateMapRegion(bounds);
 
-      mapRef.current?.animateToRegion(region, 1000);
+      zoomLevel < 7 && mapRef.current?.animateToRegion(region, 1000);
 
       if (tableName === 'regions') {
         await mutateUserData(