Bug 1633103 - Use SetState to ensure we dispatch appropriate state change notifications. r=botond

Differential Revision: https://phabricator.services.mozilla.com/D72945
This commit is contained in:
Kartikaya Gupta 2020-04-30 00:56:01 +00:00
parent 964d69b146
commit 4e454e564a

View File

@ -2637,7 +2637,7 @@ nsEventStatus AsyncPanZoomController::OnPan(const PanGestureInput& aEvent,
// scroll events from unexpectedly causing scrolling later if somehow
// the APZC becomes scrollable again in this direction (e.g. if the user
// uses some other input method to scroll in the opposite direction).
mState = NOTHING;
SetState(NOTHING);
}
return nsEventStatus_eConsumeNoDefault;