fix mouse position in Firefox