Improved Q.Pointer.movement.movingAverageVelocity calculation