d3-zoom icon indicating copy to clipboard operation
d3-zoom copied to clipboard

zoom.on() not working if using a name

Open lebesnec opened this issue 3 years ago • 0 comments

from the doc for zoom.on(typenames[, listener]) :

The typenames is a string containing one or more typename separated by whitespace. Each typename is a type, optionally followed by a period (.) and a name, such as zoom.foo and zoom.bar; the name allows multiple listeners to be registered for the same type.

but I can't get zoom.on('zoom.foo', () => { ... }) to work... zoom.on('zoom', () => { ... }) seems to work but is problematic because it remove listeners previously registered with the same typename.

lebesnec avatar Jul 28 '21 20:07 lebesnec