Fix mouse position computation rounding
Storing the result in integer variables would round the result early, yielding to shaky results. Better round only at last to get stable values.
Storing the result in integer variables would round the result early, yielding to shaky results. Better round only at last to get stable values.