Skip to content

Implement WheelEvent interface #22843

Closed

Description

@jdm

Spec: https://w3c.github.io/uievents/#events-wheelevents
Docs: https://doc.servo.org/script/dom/index.html#adding-a-new-dom-interface

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.

Activity

  1. added
    A-content/dom
    E-less-complex
    on Feb 6, 2019
  2. highfive commented on Feb 6, 2019

    @highfive

    Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the #servo channel in IRC.

    If you intend to work on this issue, then add @highfive: assign me to your comment, and I'll assign this to you. 😄

  3. added
    E-more-complex
    and removed
    E-less-complex
    on Feb 6, 2019
  4. jdm commented on Feb 6, 2019

    @jdm
    MemberAuthor

    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.

  5. robert-snakard commented on Feb 21, 2019

    @robert-snakard
    Contributor

    @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"?

  6. added
    C-assigned
    on Feb 21, 2019
  7. highfive commented on Feb 21, 2019

    @highfive

    Hey @robert-snakard! Thanks for your interest in working on this issue. It's now assigned to you!

  8. robert-snakard commented on Feb 21, 2019

    @robert-snakard
    Contributor

    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.

  9. robert-snakard commented on Feb 22, 2019

    @robert-snakard
    Contributor

    Ah, all the bindgen types are in the online documentation 👍

  10. robert-snakard commented on Feb 25, 2019

    @robert-snakard
    Contributor

    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?

  11. jdm commented on Feb 27, 2019

    @jdm
    MemberAuthor

    Manual tests should be enough; Servo certainly doesn't support any automated tests for mouse input yet.

  12. jdm commented on Mar 20, 2019

    @jdm
    MemberAuthor

    @robert-snakard Have you made any progress? Do you have any questions?

  13. 6 remaining items

  14. jdm commented on Mar 21, 2019

    @jdm
    MemberAuthor

    Even better. Thanks for verifying that behaviour!

  15. robert-snakard commented on Mar 21, 2019

    @robert-snakard
    Contributor

    The pull request for the wpt tests is here web-platform-tests/wpt#15990

  16. robert-snakard commented on Mar 24, 2019

    @robert-snakard
    Contributor

    @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.

  17. robert-snakard commented on Mar 26, 2019

    @robert-snakard
    Contributor

    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?

  18. jdm commented on Mar 26, 2019

    @jdm
    MemberAuthor

    @robert-snakard Based on the docs, I expect that when None is passed it means that the mouse is no longer inside the window.

  19. robert-snakard commented on Apr 1, 2019

    @robert-snakard
    Contributor

    @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.

  20. robert-snakard commented on Apr 2, 2019

    @robert-snakard
    Contributor

    Pull request is here #23154

  21. added
    C-has-open-pr
    on Apr 2, 2019
  22. added a commit that references this issue on Apr 9, 2019
    cdd4cb0
  23. added 3 commits that reference this issue on May 9, 2019
    280300e
    d8dcefd
    1db04df
  24. added 2 commits that reference this issue on Jun 7, 2019
    e2c3e6d
    973a344
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/domC-assignedC-has-open-prE-more-complex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions