mouse coordinate fix for Firefox