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

d3.event is not available in version 6.1.1 #76

Closed borysl closed 4 years ago

borysl commented 4 years ago

When I tried to create drag event the d3.event is always undefined. Finally I have dowgraded d3 to version 5 and it start working.

The example used was from here: https://bl.ocks.org/sistemawebpro/41d81ad70d7355691a61a6f7ac7f83d9

But I am using vue.js app and thus nmp start serve in order to see it.

What is wrong with version 6.1.1?

Fil commented 4 years ago

see https://github.com/d3/d3-drag/releases/tag/v2.0.0 & https://github.com/d3/d3/blob/master/CHANGES.md for the (recent) major changes to event management