Remove event listeners after dragging