Skip to content

Commit

Permalink
adding passive flag to wheel zoom event listener to remove google's w…
Browse files Browse the repository at this point in the history
…arning
  • Loading branch information
swordensen authored and mbostock committed Nov 2, 2020
1 parent db169ea commit 84a5e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zoom.js
Expand Up @@ -72,7 +72,7 @@ export default function() {
function zoom(selection) {
selection
.property("__zoom", defaultTransform)
.on("wheel.zoom", wheeled)
.on("wheel.zoom", wheeled, {passive: false})
.on("mousedown.zoom", mousedowned)
.on("dblclick.zoom", dblclicked)
.filter(touchable)
Expand Down

0 comments on commit 84a5e7b

Please sign in to comment.