Fixed a mouse detection issue in firefox.