소스 검색

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(