Fixing JQuery UI 1.7.3 Draggable bug
Well, I was playing with a project this week and I was kind of stuck on an old JQuery ui version. Turns out dragging images around, using Chrome, was, at the same time, selecting the image, messing all the stuff around. Something like this:
<script type="text/javascript" language="javascript" charset="utf-8">
$("img").draggable();
</script>

At the newest version of JQuery ui, the draggable stuff was working normally on Chrome, so I did a research and after an entire day the solution showed up. Fixing it is pretty simple, you should just bind the 'dragstart' on the image and prevendDefault().
<script type="text/javascript" language="javascript" charset="utf-8">
$("img").draggable();
$('img').bind('dragstart', function(event) { event.preventDefault() });
</script>

I'm a 22 years old man coding since I was 15 which means I've been coding for almost 1/3 of my life.
I'm a passionate ruby developer, wrote my first ruby block about 4 years ago and then the fun has never stopped.
Coded by me inspired on Stationery by thijsjacobs