This question already has an answer here:
I am facing a jump issue when I drag a <rect>
.
In this question they suggest to use drag.origin()
but D3 v4 version doesn't have this method anymore.
Can some body suggest how to solve the jump issue?
This question already has an answer here:
I am facing a jump issue when I drag a <rect>
.
In this question they suggest to use drag.origin()
but D3 v4 version doesn't have this method anymore.
Can some body suggest how to solve the jump issue?
Instead of
origin
usesubject
.So this
will become
Working fiddle using d3 v4 is here
API reference here