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

How to enable pan, only for left and right but not up and down #126

Closed pandey-ashutosh closed 5 years ago

pandey-ashutosh commented 6 years ago

I used like this.. selection .call() .on("mousedown.zoom", null) .on("mouseup.zoom", null);

but it doesn't work

mbostock commented 5 years ago

See #48 for a discussion regarding single-axis zooming.

pandey-ashutosh commented 5 years ago

Thanks @mbostock