d3 / d3-drag

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

remove dragEvent.on? #75

Open Fil opened 4 years ago

Fil commented 4 years ago

The reasons for having dragEvent.on subevents do not appear clear; removing it might help clarify the API as well as make it more consistent with d3-zoom's.

The feature was introduced in https://github.com/d3/d3-drag/commit/48792de0c6e3a5074e76f234239b7f565b56ae19 and documented in https://github.com/d3/d3-drag/commit/b04b031d1e856e7011ec3b271c1b0a7d69eb1954

References: https://github.com/d3/d3-zoom/pull/205/commits/96bd44b20298984fcfd25c7c1172a30080a19eaa https://github.com/d3/d3-brush/pull/71#issuecomment-663018853