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

Fix natural scroll when reaching extent #188

Open spetex opened 4 years ago

spetex commented 4 years ago

As discussed in the issue: https://github.com/d3/d3-zoom/issues/186

I am preventing pan and event cancellation if the content has reached the translateExtent.

I have tested this on an iPhone and multiple different browsers I have on my laptop.