fix mouse coordinate for FireFox