Closed Bug 1260148 Opened 8 years ago Closed 8 years ago

Make EventUtils.sendWheelAndPaint() use the system event

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

Attachments

(1 file)

In bug 1251905 comment 25, Masayuki said that the wheel event for the system event group happens after the various other wheel events, and thus we should use that for EventUtils.sendWheelAndPaint(). This will ensure that the callback is not run until after the legacy wheel events are run.
Attachment #8735473 - Flags: review?(masayuki) → review+
Will the system event still be dispatched if one of the legacy wheel events has preventDefault called on it?
(In reply to (Back on Mar30) Kartikaya Gupta (email:kats@mozilla.com) from comment #2)
> Will the system event still be dispatched if one of the legacy wheel events
> has preventDefault called on it?

Yes, it is. An event is not fired only when the event's stopPropagation() is called in the system event group's propagation.
Ok, thanks for confirming!
https://hg.mozilla.org/mozilla-central/rev/61676174a225
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in before you can comment on or make changes to this bug.