I want to make something like navigation bar that can move whole element, without allowing dragging anywhere on the parent entire element to control the dragging. For example:
<div class="undraggable">
<div class="draggable"></div>
content
</div>
Dragging on a title bar drags the whole window that it is contained within, but dragging elsewhere on the window container does not drag the window.
I tried to use dragresize but I can’t make only draggable (don’t want resizable) object with his code.
I have an example of this here:
http://phrogz.net/js/PhrogzWerkz/WerkWin.html
If you need this to work with a specific library—like a jQuery UI library—then please edit your question to say say.
Simpler Demo: http://jsfiddle.net/VCQuN/1/