зеркало из https://github.com/mozilla/gecko-dev.git
8eacaa4fde
Currently the default value of buttons is set to MOUSE_BUTTONS_NOT_SPECIFIED, which defers calculation of the value to the DOMWindowUtils GetButtonsFlagForButton function. This calculates a default value based upon the value of the button key. By specifying a default button value of 0, which has a meaning of ePrimary, the buttons value is calculated as the ePrimaryFlag (1), suggesting that a button was pressed. This patch changes the behaviour to set the value of buttons based on the original value of button before the default was applied. The value of buttons also considers the event type to ensure that a mousedown event has a default value calculated by DOMWindowUtils. With the new behaviour: - if a value was explicitly set for buttons, this is used - if a value was explicitly set for button, then the not-specified constant is used to defer calculation to DOMWindowUtils - if an event type was specified and that event type was not the 'mousedown' event, then the no-button constant is used - if an event type was not specified or it was for the 'mousedown' event, then the not-specified constant is used to defer calculation to DOMWindowUtils Differential Revision: https://phabricator.services.mozilla.com/D101690 |
||
---|---|---|
.. | ||
actors | ||
app | ||
base | ||
branding | ||
components | ||
config | ||
docs | ||
extensions | ||
fonts | ||
fxr | ||
installer | ||
locales | ||
modules | ||
themes | ||
tools/mozscreenshots | ||
.eslintrc.js | ||
LICENSE | ||
Makefile.in | ||
app.mozbuild | ||
build.mk | ||
confvars.sh | ||
defs.mk | ||
l10n-registry.manifest | ||
moz.build | ||
moz.configure |