Hello, I'm using jquery to make a few divs draggable on a website. My code is similar to this:
$("#thediv").bind('mousedown',function(){
$(document).bind('mousemove',function(ms){
//drag
})
});
The problem is that if the mouse is too fast for the div, the mouse goes outside of the div. This selects random content on the screen (highlights it blue). It does not give a smooth drag effect. Is there a nice way of fixing this? jQuery's ui drag plugin does not have this problem. I don't want to use it though because it is a large file.
Thanks