Browse Source

animation small fix

Viktoriia 1 year ago
parent
commit
8e4ba5a197
1 changed files with 1 additions and 1 deletions
  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(