Suraj Air
Suraj Air

Reputation: 2103

dragging of HTML elements

I am performing dragging of HTML elements.All is working fine but when is mouse is hovered very fast it leaves the HTML element back and moves along. Is there any way to avoid it. Thanks in Advance....

Upvotes: 0

Views: 124

Answers (1)

Van Coding
Van Coding

Reputation: 24534

did you use the mousemove-event of the dragged element or of the document element? when you used the event of the dragged element, then it will not fire when you leave this element, so when the mouse moves very fast, you could get outsite the element. Hope this helps.

Upvotes: 1

Related Questions