Make dropout menu less hectic.

The menu behaves more expected when it closes when the mouse enters
the page area. The previous event handler caused a flickering effect
under some circumstances.