Skip to content

Commit

Permalink
fix: fix for the zoom out and more smooth/controlled zoom update (aci…
Browse files Browse the repository at this point in the history
…kyazilimagi#404)

Co-authored-by: Doğukan Yiğiter <[email protected]>
  • Loading branch information
DodoBey and Doğukan Yiğiter authored Feb 8, 2023
1 parent 4b627bd commit ba17759
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/UI/Map/LeafletMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ function LeafletMap() {
? DEFAULT_MIN_ZOOM_DESKTOP
: DEFAULT_MIN_ZOOM_MOBILE
}
zoomSnap={0.25}
zoomDelta={0.5}
whenReady={(map: any) => setCoordinates(map.target.getBounds())}
preferCanvas
maxBounds={bounds}
Expand Down

0 comments on commit ba17759

Please sign in to comment.