Moved collision detection from contextmenu event handler to the Menu.position.