Recalculating the mouse position, because it is not calculated propely on chrome