prevent default behavior when not in dragging mode