Bug 1601184 - Make legacy mouse scroll events composed. r=smaug

Makes sense to be consistent with wheel.

Differential Revision: https://phabricator.services.mozilla.com/D55896

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2019-12-08 21:43:11 +00:00
parent c6f85f0478
commit 9ee2b1259b

View File

@ -897,6 +897,12 @@ class WidgetEvent : public WidgetEventTime {
// All wheel events are composed
mFlags.mComposed = mMessage == eWheel;
break;
case eMouseScrollEventClass:
// Legacy mouse scroll events are composed too, for consistency with
// wheel.
mFlags.mComposed = mMessage == eLegacyMouseLineOrPageScroll ||
mMessage == eLegacyMousePixelScroll;
break;
default:
mFlags.mComposed = false;
break;