fixed issue with mouse position in firefox