mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1039979 - Cancel animations when a finger goes down without waiting for the content response. r=botond
This commit is contained in:
parent
031c12856c
commit
75bfcea27d
@ -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