Bug 1139575 - Reset velocity on axes when going from a pan to a pinch. r=botond

This commit is contained in:
Kartikaya Gupta 2015-03-06 16:52:35 -05:00
parent c4fce7246b
commit dd716ae550

View File

@ -1266,6 +1266,8 @@ nsEventStatus AsyncPanZoomController::OnScaleBegin(const PinchGestureInput& aEve
}
SetState(PINCHING);
mX.SetVelocity(0);
mY.SetVelocity(0);
mLastZoomFocus = aEvent.mLocalFocusPoint - mFrameMetrics.mCompositionBounds.TopLeft();
return nsEventStatus_eConsumeNoDefault;