Bug 1041471 - Call CancelAnimation() on a touch-cancel. r=kats

This commit is contained in:
Botond Ballo 2014-07-21 15:42:58 -04:00
parent dad86ed507
commit 28234424f8

View File

@ -1147,7 +1147,7 @@ nsEventStatus AsyncPanZoomController::OnTouchEnd(const MultiTouchInput& aEvent)
nsEventStatus AsyncPanZoomController::OnTouchCancel(const MultiTouchInput& aEvent) {
APZC_LOG("%p got a touch-cancel in state %d\n", this, mState);
OnTouchEndOrCancel();
SetState(NOTHING);
CancelAnimation();
return nsEventStatus_eConsumeNoDefault;
}