Open Bug 2010650 Opened 5 days ago

Make synthesizeMouseEvent and synthesizeTouchEvent having consistent way to specify modifier

Categories

(Core :: DOM: UI Events & Focus Handling, task)

task

Tracking

()

People

(Reporter: edgar, Unassigned, Mentored)

Details

(Keywords: good-first-bug)

(This is a follow-up of https://phabricator.services.mozilla.com/D277283#9625228)

we have an independent argument for modifier on touch, but for mouse events the modifier is a part of SynthesizeMouseEventData. I prefer to be consistent.

I think we could make mouse also specifying modifier by independent argument instead.
And also perhaps make offsetX and offsetY being part of SynthesizeEventData, so it can be shared by SynthesizeMouseEventData and SynthesizeTouchEventData, which could also address https://phabricator.services.mozilla.com/D277283#inline-1514238 in a better way.

You need to log in before you can comment on or make changes to this bug.