can't stop dragging after double click

can't stop dragging after double click

I'm working on a webkit based browser on ubuntu linux. After double clicking on a draggable div, I can stop dragging the div. The dragging doesn't quit after my mouse up. I'm using the ui.draggable api. I noticed that the way that it receives the double click is mouse down - mouse down - mouse up - mouse up. Can't change webkit, so anyone know I can handle this so as to prevent this behavior?