Bug 1917488 - Avoid a debug assertion in nsBaseWidget::MayStartSwipeForAPZ(). r=dlrobertson

Differential Revision: https://phabricator.services.mozilla.com/D229088
This commit is contained in:
Botond Ballo 2024-11-18 16:32:32 +00:00
parent 43107373d0
commit 1c0bf233ea

View File

@ -2349,7 +2349,7 @@ WidgetWheelEvent nsBaseWidget::MayStartSwipeForAPZ(
return event;
}
if (aPanInput.AllowsSwipe()) {
if (aPanInput.mHandledByAPZ && aPanInput.AllowsSwipe()) {
SwipeInfo swipeInfo = SendMayStartSwipe(aPanInput);
event.mCanTriggerSwipe = swipeInfo.wantsSwipe;
if (swipeInfo.wantsSwipe) {