Prevent accidental dragging when clicking on menu items