Fixed menu bar flashing bug when mouseY==0.

Change-Id: I91694ed15293d4ee6bf11d5b64f6480511cbb5bd