title: jquery draggable stop event on double click of the element
body: <p>I have multiple element that are jquery ui draggable, these elements can also be double clicked to open up a dialog which has a form.</p>
  
  <p>The problem is that when users double click they hold the mouse down after the double click and open the dialog box as well as dragging the element, this leads to the element being moved all over the place behind the dialog box without realizing it.</p>
  
  <p>I need to be able to stop the draggable when double clicking on it removing the draggable event entirely and stopping current draggables. I have tried: </p>
  
  <pre><code>$(".items").draggable( "option", "disabled", true );
  </code></pre>
  
  <p>then</p>
  
  <pre><code>$(".items").draggable( "option", "disabled", false );
  </code></pre>
  
  <p>on dialog close, but this doesnt work(it may stop the ability to create new draggable events but doesnt terminate the current dragging.</p>
  
  <p>I have also seen some people saying destoy the draggable completely then readd it again, but that cannot be the solution as its ugly lol.</p>
  
  <p>Annoying little problem but its causing problems in my system and i cant find an answer to it anywhere.</p>