Prevent showing the menu when the opacity changes.