hide menu when dragging. fixed menu showing bug