Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xilem_web: Add pointer events and fix bounds on event listeners and correct event type for mouse events. #733

Merged

Conversation

Philipp-M
Copy link
Contributor

As this Firefox issue is finally fixed, we can be more close to the spec with the click/auxclick/contextmenu events by using a PointerEvent instead of a MouseEvent.

I've also noticed that the DOM interface bounds/types were out of sync with the event types (bounds), this was corrected as well.

Additionally all the pointer... events were added.
And a simple PointerMsg::position() -> Point accessor.

@Philipp-M
Copy link
Contributor Author

Added some documentation for the Pointer view as well (with an example).

Copy link
Contributor

@flosse flosse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Philipp-M Philipp-M added this pull request to the merge queue Nov 10, 2024
Merged via the queue into linebender:main with commit 6258856 Nov 10, 2024
17 checks passed
@Philipp-M Philipp-M deleted the xilem_web-fix-pointer-event-interfaces branch November 10, 2024 13:28
viktorstrate pushed a commit to viktorstrate/xilem that referenced this pull request Nov 10, 2024
…orrect event type for mouse events. (linebender#733)

As [this Firefox
issue](https://bugzilla.mozilla.org/show_bug.cgi?id=1675847) is finally
fixed, we can be more close to the spec with the
`click/auxclick/contextmenu` events by using a `PointerEvent` instead of
a `MouseEvent`.

I've also noticed that the DOM interface bounds/types were out of sync
with the event types (bounds), this was corrected as well.

Additionally all the `pointer...` events were added.
And a simple `PointerMsg::position() -> Point` accessor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants