mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
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:
parent
c6f85f0478
commit
9ee2b1259b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user