mouse: Fix small bug when creating last velocity.