mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
removed zoom animation for initial zoom
This commit is contained in:
@@ -15,7 +15,7 @@ function MapPan(props) {
|
||||
|
||||
useEffect(() => {
|
||||
if(!initialized && props.center) {
|
||||
map.flyTo(props.center, DEFAULT_ZOOM);
|
||||
map.flyTo(props.center, DEFAULT_ZOOM, {animate: false});
|
||||
setInitialized(true)
|
||||
}
|
||||
},[props.center]);
|
||||
|
||||
Reference in New Issue
Block a user