d3 / d3-zoom

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

dbltap should respect zoom.clickDistance. #180

Closed mbostock closed 4 years ago

mbostock commented 5 years ago

We should only cancel the dbltap if the touchmove moves more than a certain distance from the touchstart position.

Fil commented 4 years ago

This should also solve the pencil dbl-tap issue (see https://github.com/d3/d3-zoom/issues/206). However it's probably not going to be the same factor depending on the type of input? The pencil always sends non-zero moves.