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

Wayland touch support is shoddy #1392

Open
2 tasks done
bansheerubber opened this issue Jul 25, 2022 · 2 comments
Open
2 tasks done

Wayland touch support is shoddy #1392

bansheerubber opened this issue Jul 25, 2022 · 2 comments
Labels
bug Something isn't working shell

Comments

@bansheerubber
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

There is an issue with the current version of rust-windowing/winit that prevents touch support from functioning properly in Wayland (see rust-windowing/winit#1996). Tapping a button will not correctly fire the button's on_press message since iced_winit isn't receiving correct location data. I found that if I touched the button, moved my finger along the button, and then released, the button would function properly.

A fix has been merged into the winit upstream that fixes this issue. The fix is currently unreleased and I'm not sure what the timeline on it is. I forked iced-rs/winit and cherry-picked the PR since I don't want this issue to delay my hobby project, and I can confirm that this PR fixes the issue I was experiencing.

The reason I'm posting this is to add to the knowledge base regarding this problem. This had me stumped for a few hours today.

What is the expected behavior?

Expect button tapping to fire the button's on_press message.

Version

0.4

Operative System

Linux

Do you have any log output?

No response

@bansheerubber bansheerubber added the bug Something isn't working label Jul 25, 2022
@wyatt-herkamp
Copy link
Contributor

@bansheerubber could you try #1410. This updates to the winit version to 0.27.

@hecrj hecrj added the shell label Sep 20, 2022
@AlistairKeiller
Copy link
Contributor

I am on 0.12.1 (which would have winit=0.29), and I still have this issue. Running Weston, weston-simple-touch works perfectly, however my iced application does not fire on_press correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working shell
Projects
None yet
Development

No branches or pull requests

4 participants