d3 / d3-drag

Drag and drop SVG, HTML or Canvas using mouse or touch input.

Home Page:https://d3js.org/d3-drag

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible typo in README

ondrejsevcik opened this issue · comments

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.

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

thanks for the explanation 👍