fix mouse move delta calculation