mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Auto merge of #24564 - paulrouget:initButtons, r=jdm
Properly set MouseEvent buttons property Properly set MouseEvent buttons property. Same behavior as Chrome and Firefox. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24363 (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
commit
f78ca5794a
2 changed files with 1 additions and 4 deletions
|
@ -137,7 +137,7 @@ impl MouseEvent {
|
|||
init.parent.shiftKey,
|
||||
init.parent.metaKey,
|
||||
init.button,
|
||||
0,
|
||||
init.buttons,
|
||||
init.relatedTarget.as_deref(),
|
||||
None,
|
||||
);
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
[Event-subclasses-constructors.html]
|
||||
type: testharness
|
||||
[MouseEvent constructor (argument with non-default values)]
|
||||
expected: FAIL
|
||||
|
||||
[WheelEvent constructor (argument with non-default values)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue