diff --git a/src/components/MapView/MapView.website.tsx b/src/components/MapView/MapView.website.tsx index 5a709ca0f1fd..a6f4d897a9f4 100644 --- a/src/components/MapView/MapView.website.tsx +++ b/src/components/MapView/MapView.website.tsx @@ -112,14 +112,13 @@ const MapView = forwardRef( return; } - // Avoid navigationg to the same location - if (prevUserPosition.longitude === currentPosition.longitude && prevUserPosition.latitude === currentPosition.latitude) { - return; - } + // Avoid animating the naviagtion to the same location + const shouldAnimate = prevUserPosition.longitude !== currentPosition.longitude || prevUserPosition.latitude !== currentPosition.latitude; mapRef.flyTo({ center: [currentPosition.longitude, currentPosition.latitude], zoom: CONST.MAPBOX.DEFAULT_ZOOM, + animate: shouldAnimate, }); }, [currentPosition, mapRef, prevUserPosition, shouldPanMapToCurrentPosition]);