Fix a bug if the mouse was moving before hovering the tab on windows