Bug 1039979 - Cancel animations when a finger goes down without waiting for the content response. r=botond

This commit is contained in:
Kartikaya Gupta 2014-07-17 13:41:52 -04:00
parent 031c12856c
commit 75bfcea27d

View File

@ -828,6 +828,9 @@ nsEventStatus AsyncPanZoomController::ReceiveInputEvent(const InputData& aEvent)
// Content may intercept the touch events and prevent-default them. So we schedule
// a timeout to give content time to do that.
ScheduleContentResponseTimeout();
// However, we still want to cancel animations here because a finger has gone down
// and we don't want to keep moving the content under the finger.
CancelAnimation();
} else {
// Content won't prevent-default this, so we can just pretend like we scheduled
// a timeout and it expired. Note that we will still receive a ContentReceivedTouch