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

Emit end event after last zoom which had an effect #179

Closed Herst closed 4 years ago

Herst commented 5 years ago

See #158

Herst commented 5 years ago

@mbostock That ought do it and not break anything, right? Because the stored mouse location plays no role in those cases where the wheel event wouldn't make any difference (e.g. because of the scaleExtent).

mbostock commented 4 years ago

This looks correct to me. The new else is redundant (because of the preceding return).

Herst commented 4 years ago

Fixed.

mbostock commented 4 years ago

Merged as f4c6c792a26a6293a3e43911f2117e28852329c2.