-
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
Native: Scroll direction varies by platform #356
Comments
On my macbook (macOS Mojave) the positive scroll direction is down and to the right (with "natural scrolling" turned on). This is the correct direction, and same as the positive mouse delta. |
I'd like to get a few more voices on this before taking action. This may be an issue with KDE, Linux, or all non-Mac platforms. So please test the scroll direction by checking out latest |
It might be helpful to re-title this issue "...scroll delta sign/direction..." given that there |
I tested two finger scrolling on Xfce-4.12 with "Reverse scroll direction" enabled. |
This should be worked on in winit if anyone has the energy to work on it |
On windows, I'm experiencing horizontal scroll going the wrong direction. |
Same on gnome/wayland. X-axis is flipped.
…On Fri, 2021-12-17 at 10:31 -0800, Aevyrie wrote:
On windows, I'm experiencing horizontal scroll going the wrong
direction.
Scrolling anywhere other than egui results in "natural" scrolling in
x and y.
In egui (native), scrolling in x is flipped, y is correct. This is
not the case on the web, where scrolling works as expected.
|
I've PR'd |
Fix wrong hscroll in winit: |
Describe the bug
As we noticed in #349 (comment):
On Linux, the two-finger scroll delta reported by
ui.input().scroll_delta
is positive to the right and up. I can enable "natural scrolling" in the settings and this reverses the direction on both axes. Apparently this is different on other platforms, namely on Mac.To Reproduce
Steps to reproduce the behavior:
ui.input().scroll_delta
to get the scroll delta when using the touchpad with two fingersExpected behavior
That the reported values are always the same.
Desktop:
Operating System: Manjaro Linux
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Kernel Version: 5.12.1-2-MANJARO
OS Type: 64-bit
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-9750H CPU @ 2.60GHz
Memory: 15.3 GiB of RAM
Graphics Processor: GeForce GTX 1650 with Max-Q Design/PCIe/SSE2
The text was updated successfully, but these errors were encountered: