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

Scroll speed is too slow compared to regular iced-rs #107

Open
Exidex opened this issue Dec 19, 2024 · 4 comments
Open

Scroll speed is too slow compared to regular iced-rs #107

Exidex opened this issue Dec 19, 2024 · 4 comments

Comments

@Exidex
Copy link
Contributor

Exidex commented Dec 19, 2024

The difference seems to be roughly: x11 scrolls 14 items per full wheel scroll, layershell only 3 items per full scroll

X11:

x11.mp4

Layershell:

layershell.mp4
@Decodetalkers
Copy link
Collaborator

Emm.. I do not quite know how to fix it... I should done in the same way what winit is doing..

@Exidex
Copy link
Contributor Author

Exidex commented Dec 20, 2024

Did little bit of debugging, the difference is that for layershell mouse scroll events are fired as wl_pointer::Event::Axis (absolute, amount of pixels) but for winit it is wl_pointer::Event::AxisDiscrete (discrete, amount of lines). At the moment not sure why

@Decodetalkers
Copy link
Collaborator

Emm, I am not quite familiar with this part, if you can help me complete this part, I will be very happy. Thank you very much

@Exidex
Copy link
Contributor Author

Exidex commented Dec 20, 2024

Also found that wl_pointer::Event::AxisSource is not fired. Otherwise this is also quite outside of my knowledge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants