d3 / d3-drag

Drag and drop SVG, HTML or Canvas using mouse or touch input.
https://d3js.org/d3-drag
ISC License
332 stars 62 forks source link

Possible typo in README #55

Closed ondrejsevcik closed 6 years ago

ondrejsevcik commented 6 years ago

Hello,

this is from the README

Internally, the drag behavior uses selection.on to bind the necessary event listeners for dragging. The listeners use the name .drag, so you can subsequently unbind the drag behavior as follows:

selection.on(".drag", null);  <--- should the event name contain dot? 

although I'm no expert on d3, this looks like a typo.

mbostock commented 6 years ago

This is not a typo. Please see the documentation for selection.on and drag for explanation.

ondrejsevcik commented 6 years ago

thanks for the explanation 👍