Skip to content

Commit

Permalink
Makes sure the map catches the scroll events
Browse files Browse the repository at this point in the history
  • Loading branch information
kajgiesbersflavour committed Sep 22, 2021
1 parent 8d46a15 commit 66e91a6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/js/Map/handleContainerEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ export default function handleContainerEvents() {
map.tooltip.hide()
}
map.setScale(map.scale * zoomStep, offsetX, offsetY)
}, {
// https://www.chromestatus.com/feature/5745543795965952
passive: true
})

event.preventDefault()
});
}
}

0 comments on commit 66e91a6

Please sign in to comment.