You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-content/domInteracting with the DOM from web contentC-assignedThere is someone working on resolving the issueC-has-open-prThere is a PR open that resolves the issueE-more-complexVariable effort required; may require a mentor. Recommended solution is clearly described in the iss
I see [2019-02-06T22:41:04Z ERROR script::dom::bindings::error] Error at https://assets-prod.reticulum.io/assets/js/hub-01a8e131ea6755144653.js:1:376343 WheelEvent is not defined when creating a Hubs room.
We can hook this up to the MouseWheel device event in this event handling loop, and add a new WindowEvent kind that sends an event to the script thread like we do with mouse and keyboard events.
Second, the DOM constants are generated in BindingGen.py. How do I find the files generated by this script? A grep for KeyboardEventBinding only turned up the files that use the import, not the file that owns the enum.
Thanks. I'm having issues with the linker (see my question here) but I did create the event and get it to compile (on this branch). Now I just have to add the hooks you described previously.
Also as far as testing goes, the only tests I found for mouseevent were the manual tests in tests/wpt/web-platform-tests/uievents/mouse/. Will a couple manual tests for wheelevent be enough? Or are there some automatic tests I haven't found yet?
@jdm just a status update. Working on sending the wheel event from the compositor to the script thread. I've found the line where I need to send a message through the constellation. Right now working on getting all the variables I need.
I need to get a DevicePoint for my wheel event so that I can get a pipeline_id for the constellation.
Hey @jdm, looking at the script_traits::CompositorEvent right now. Why is the MouseMoveEvent have an optional Point2D? Won't the pointer always exist somewhere on the screen?
@jdm code is done. WPT tests pass and creating a room on Mozilla Hubs no longer reports a WheelEvent error. About to rebase, should have the pull request for you by tonight.
Reacted by Josh Bowman-Matthews, Darkspirit and cybai
A-content/domInteracting with the DOM from web contentC-assignedThere is someone working on resolving the issueC-has-open-prThere is a PR open that resolves the issueE-more-complexVariable effort required; may require a mentor. Recommended solution is clearly described in the iss
Activity
highfive commentedon Feb 6, 2019
Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the
#servochannel in IRC.If you intend to work on this issue, then add
@highfive: assign meto your comment, and I'll assign this to you. 😄jdm commentedon Feb 6, 2019
We can hook this up to the MouseWheel device event in this event handling loop, and add a new WindowEvent kind that sends an event to the script thread like we do with mouse and keyboard events.
robert-snakard commentedon Feb 21, 2019
@highfive: assign me
Hey @jdm. I'm taking a look at this, brand new to working on Servo, got a bunch of questions. First off, what is "Hubs"?
highfive commentedon Feb 21, 2019
Hey @robert-snakard! Thanks for your interest in working on this issue. It's now assigned to you!
robert-snakard commentedon Feb 21, 2019
Second, the DOM constants are generated in
BindingGen.py. How do I find the files generated by this script? A grep forKeyboardEventBindingonly turned up the files that use the import, not the file that owns the enum.robert-snakard commentedon Feb 22, 2019
Ah, all the bindgen types are in the online documentation 👍
jdm commentedon Feb 22, 2019
Hubs is https://hubs.mozilla.com/.
robert-snakard commentedon Feb 25, 2019
Thanks. I'm having issues with the linker (see my question here) but I did create the event and get it to compile (on this branch). Now I just have to add the hooks you described previously.
Also as far as testing goes, the only tests I found for mouseevent were the manual tests in tests/wpt/web-platform-tests/uievents/mouse/. Will a couple manual tests for wheelevent be enough? Or are there some automatic tests I haven't found yet?
jdm commentedon Feb 27, 2019
Manual tests should be enough; Servo certainly doesn't support any automated tests for mouse input yet.
jdm commentedon Mar 20, 2019
@robert-snakard Have you made any progress? Do you have any questions?
6 remaining items
jdm commentedon Mar 21, 2019
Even better. Thanks for verifying that behaviour!
robert-snakard commentedon Mar 21, 2019
The pull request for the wpt tests is here web-platform-tests/wpt#15990
robert-snakard commentedon Mar 24, 2019
@jdm just a status update. Working on sending the wheel event from the compositor to the script thread. I've found the line where I need to send a message through the constellation. Right now working on getting all the variables I need.
I need to get a DevicePoint for my wheel event so that I can get a pipeline_id for the constellation.
robert-snakard commentedon Mar 26, 2019
Hey @jdm, looking at the script_traits::CompositorEvent right now. Why is the MouseMoveEvent have an optional Point2D? Won't the pointer always exist somewhere on the screen?
jdm commentedon Mar 26, 2019
@robert-snakard Based on the docs, I expect that when None is passed it means that the mouse is no longer inside the window.
robert-snakard commentedon Apr 1, 2019
@jdm code is done. WPT tests pass and creating a room on Mozilla Hubs no longer reports a WheelEvent error. About to rebase, should have the pull request for you by tonight.
robert-snakard commentedon Apr 2, 2019
Pull request is here #23154
Auto merge of #23154 - robert-snakard:issue_22843, r=<try>
Auto merge of #23154 - robert-snakard:issue_22843, r=<try>
Auto merge of #23154 - robert-snakard:issue_22843, r=<try>
Auto merge of #23154 - robert-snakard:issue_22843, r=paulrouget
Auto merge of #23154 - robert-snakard:issue_22843, r=paulrouget
Auto merge of #23154 - robert-snakard:issue_22843, r=paulrouget