Skip to content

Commit cc02fb9

Browse files
committed
fix: remove snapping to zoom levels when using mouse scroll wheel
1 parent 5abfb51 commit cc02fb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/MapContainer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export const MapContainer = ({ onClick }: { onClick?: __esri.ViewImmediateClickE
3636
},
3737
});
3838

39+
mapView.current.constraints.snapToZoom = false;
40+
3941
setMapView(mapView.current);
4042

4143
const selectorOptions: LayerSelectorProps = {

0 commit comments

Comments
 (0)