Unify pointer events and support tablet event - #3417
Draft
443eb9 wants to merge 8 commits into
Draft
Conversation
443eb9
marked this pull request as draft
August 11, 2026 12:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pr is based on #3415 so the file changes are mixed with it but this will be rebased after winit upgrade.
Discussion in discord thread: https://discord.com/channels/628993209984614400/1536327987837014098
winit 0.31 has its pointer events overhauled, and the api changed a lot. It now looks like this
While it previously looks like this:
iced is currently using winit 0.30 and following the old style of api.
This pr merged the old
MouseandTouchvariant on Event intoPointer:also added four helpers to make matching cleaner and make touch and tablet press support out of box.
Previously if we want to match left click or finger press:
Now:
Even with tablet contact supported out of box!