raphael.draggable icon indicating copy to clipboard operation
raphael.draggable copied to clipboard

error in dragging

Open joearms opened this issue 15 years ago • 1 comments
trafficstars

If you move the cursor so quickly that it lands outside the dragged object then the object no longer follows the cursor.

I haven't looked at the code but this is a common problem in implementing drag-and-drop

Probably because the event handler is bound to the object. You have to bind it to the underlying canvas, so that dragging will still work for fast cursor movements

/Joe

joearms avatar Dec 23 '09 11:12 joearms

I'll take a look at this more closely. I did have the issue you mention when the onmousemove was tied to the element being dragged, but I'm watching that event on the document now, so I'm not sure what the issue is yet.

Do you know if it happens with particular shapes or does it happen with anything on the canvas?

mephraim avatar Dec 23 '09 18:12 mephraim