Fix map scroll with modals open
This commit is contained in:
parent
dec8fd3c2e
commit
5a2e0a53ed
@ -78,6 +78,9 @@ function MapInteraction({ map, children, controls, selectedToolId }) {
|
||||
|
||||
const bind = useGesture({
|
||||
onWheel: ({ delta }) => {
|
||||
if (preventMapInteraction) {
|
||||
return;
|
||||
}
|
||||
const newScale = Math.min(
|
||||
Math.max(stageScale + delta[1] * wheelZoomSpeed, minZoom),
|
||||
maxZoom
|
||||
|
Loading…
Reference in New Issue
Block a user