Improved draggable directive to drag only the note or group that was clicked and not its parents in the DOM