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

Expose touch events in canvas widget #1305

Merged
merged 7 commits into from
Oct 4, 2022
Merged

Conversation

artursapek
Copy link
Contributor

This exposes iced_native::Event::Touch in canvas::on_event. Currently it's not possible to handle touchscreen interactions in canvas code, the way a lot of builtin widgets do (slider, button, etc).

I tested the examples that use canvas (bezier_tool, solar_system, game_of_life) and this doesn't break any of them.

@artursapek artursapek marked this pull request as draft April 13, 2022 04:30
@hecrj hecrj added feature New feature or request widget shell canvas labels Apr 13, 2022
@artursapek artursapek force-pushed the canvas-touch branch 3 times, most recently from ccc59cc to cae08c7 Compare April 14, 2022 02:33
@hecrj hecrj added this to the 0.5.0 milestone Oct 3, 2022
@hecrj hecrj marked this pull request as ready for review October 4, 2022 09:35
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks! 🥳

I have tried to bring the multitouch example to the finish line! Voronoi diagrams are cool.

@artursapek
Copy link
Contributor Author

thanks @hecrj - I think this is good to go

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