Fixes mouse position issue in firefox