d3 / d3-zoom

Pan and zoom SVG, HTML or Canvas using mouse or touch input.
https://d3js.org/d3-zoom
ISC License
502 stars 143 forks source link

iPad zoom issue #187

Closed enheit closed 4 years ago

enheit commented 4 years ago

Current behavior: iPad triggers zoom event on page scroll.

Expected behavior: Do not trigger zoom event while scrolling the page

Details: iOS: 12.4 Browsers: Chrome (74.0.3729.155) & Safari

mbostock commented 4 years ago

Are you using d3-zoom 1.8.3?

I’ll also require further explanation because I don’t understand the description. The past release did not properly suppress scrolling when zooming on iOS, but I’ve never heard of zooming being triggered by scrolling.

enheit commented 4 years ago

I found a source of a problem and it is comes from onresize event.

This issue can be closed and treated as not related to d3-zoom.

Thank you.