title: How can I make an element draggable only on one point?
body: <p>I have a parent div (like &quot;#strip17&quot;) with several child divs. Many of those child divs contain each one canvas on which the user should be able to draw stuff using his mouse. Except for the last child div, which should be the point where the user is able to grab the parent div and drag it around.</p>
  <p>This whole (parent) div needs to be draggable, as such that the user grabbs it at the &quot;grab&quot;-child and drops it whereever it is needed. I need some kind of 'handle' for dragging the parent div around, if you like.</p>
  <p>My problem here: I can only call .draggable() on either the parent child, which means that the user isn't able to draw on any of the canvas elements inside any child div (as drawing is interpreted as dragging), or I call .draggable() on the drag-child-div (&quot;.camber-move&quot;), which would mean that only this div is moving and the rest of the parent div would stay where it is - drawable though.</p>
  <p>I suppose, this should be doable by calling .draggable() on &quot;.camber-move&quot; and somehow convincing jQuery-UI to not only move the &quot;.camber-move&quot; div, but also its parent &quot;#strip17&quot;. But how?</p>
  <pre><code>// '#&lt;newStripID&gt;' is the ID of the parent element
  // '#&lt;newStripID&gt; .camber-move' is the ID of the element which should be the 'grab-handle'
  $('#' + newStripID).draggable({
       &quot;containment&quot;: &quot;#content&quot;
  });
  </code></pre>
  <p>html:</p>
  <pre><code>&lt;div id=&quot;strip17&quot;&gt;
      &lt;div class=&quot;strip-camber-1&quot;&gt;&lt;canvas&gt;&lt;/canvas&gt;&lt;/div&gt;
      &lt;div class=&quot;strip-camber-1&quot;&gt;&lt;canvas&gt;&lt;/canvas&gt;&lt;/div&gt;
      &lt;div class=&quot;strip-camber-1&quot;&gt;&lt;canvas&gt;&lt;/canvas&gt;&lt;/div&gt;
      &lt;div class=&quot;strip-camber-1&quot;&gt;&lt;canvas&gt;&lt;/canvas&gt;&lt;/div&gt;
      &lt;div class=&quot;camber-move&quot;&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>