Prevent NaN deltas if there was no mouse movement.