d3 / d3-zoom

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

D3JSv6 passive listener type-error while drag inside the chart(used zoom event)? #232

Closed MUTHUKUMAR73737 closed 3 years ago

MUTHUKUMAR73737 commented 3 years ago

image

I am getting above error in the browser console when I drag(zoom - mousemove event is calling) inside the chart.

d3.select("svg") .call( d3.zoom() .scaleExtent([1, 10]) .translateExtent([[0, 0], [400, 215]]) .extent([[0, 0], [400, 215]]) .on("zoom", function (event) { // stuff here }) I am using d3js version 6.3.1 inside angular application.

Please help me to resolve this issue.

Fil commented 3 years ago

Duplicate of https://github.com/d3/d3-zoom/issues/231