Mike
function dragmove(d, i) {
d.x += d3.event.dx;
d.y += d3.event.dy;
d3.select(this).attr("transform", "translate(" + d.x + "," + d.y +
")");
}
Has anyone tried this? I did something similar and found that changing
the transform on the drag target like this will change the local mouse
coordinates in such a way that the reported dx and dy will be
sometimes double reality. My solution was to convert event.x and
event.y to global coordinates and keep track myself of how much the
mouse was moving. It seems to me that drag behavior should report dx
and dy in absolute terms. Unless I'm missing something here as well.
--
Bob
<body oncontextmenu="return false;">
If I recall correctly, I think that mostly IE accepted it.
I hope it's what you're looking for,
Tal