mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 22:05:44 +00:00
Bug 1039979 - Cancel animations when a finger goes down without waiting for the content response. r=botond
This commit is contained in:
parent
b227f99c10
commit
183fd7d774
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user