-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 is too slow on Gnome/Wayland #461
Comments
Seem like related to rust-windowing/winit#22. |
So, winit emits one 1 / -1 line delta event for each click of the scroller. If this is the approximate line height of egui text, can we have a configurable number of lines per click of the scroller? Is it ok If we extend |
I tested the egui and winit's mouse_wheel example under Windows. Exactly the same result as in the gnome, one click - one event with a 1 / -1 delta and a scroll of only 8 pixels. |
Similar issue in flutter flutter/flutter#71385
The Chromium uses 53 as scroller step. |
I'm also facing this issue on Windows with the glium backend. Could we maybe, while this is not fixed in winit, provide a builder parameter to the scroll area and/or window scroll? Even if fixed, I can imagine a user parameter being useful, similar to how the dragValue speed can be changed. |
I don't think this is a winit problem, because it seems that one "line" of scroll means one click of the scroller, or about 15 degrees of wheel rotation. So we need to decide how to interpret one click of the scroll wheel. There are also cases when the author of the application needs clicks, and not scrolling in pixels. For example, to change a value by one in the integer input area, or to select a weapon in a game. |
Each so called "line" in MuseScrollDelta::LineDelta de-facto represents single scroller click which in most cases is 15 degrees of wheel rotation. Currently, one scroller click scrolls exactly one line of the text, which is very slow. This change multiplies the scroll rate by 5. So, with one click of the scroller, 5 lines scrolled. This number is taken from the "iced" GUI library and feels quite balanced. Fixes emilk#461
Each so called "line" of MuseScrollDelta::LineDelta de-facto represents single scroller click which in most cases is 15 degrees of wheel rotation. Currently, one scroller click scrolls exactly one line of the text, which is very slow. This change multiplies the scroll rate by 5. So, with one click of the scroller, 5 lines scrolled. This number is taken from the "iced" GUI library and feels quite balanced. Fixes emilk#461
Each so called "line" of the MuseScrollDelta::LineDelta de-facto represents a single scroller click which in most cases equals to 15 degrees of wheel rotation. Currently, one scroller click scrolls exactly one line of the text, which is very slow. This change multiplies the scroll rate by 5. So, with one click of the scroller, 5 lines scrolled. This number is taken from the "iced" GUI library and feels quite balanced. Fixes emilk#461
Scrolling speed is very slow in Gnome/Wayland using glium backend.
Screencast
There must be a way to solve all this scrolling mess.
Scroll event handling happens here:
egui/egui_glium/src/lib.rs
Line 178 in 2af86cd
Related issue with useful comments: #159 (comment)
Screencast.from.04-06-21.12.06.19.mp4
The text was updated successfully, but these errors were encountered: