-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Fix scroll issue in media view on some logitech hi-res wheel mouse #27245
base: dev
Are you sure you want to change the base?
Conversation
Do you plan to add this hack to each & every app on your desktop? This honestly sounds counter-productive to me and I would rather suggest to add this to libinput or display server. |
humm no? telegram is the only app I know that synthesizes discrete scroll events itself and use it for navigate pictures by mouse wheel. other app I often use either don't support hi-res wheel or don't support navigate pictures by mouse wheel, which don't have this issue, so I pr here.
about libinput https://gitlab.freedesktop.org/libinput/libinput/-/issues/814#note_1593617 |
Then fix that piece of code instead of hacking here? |
ok my mistaken, the function |
btw why you call me hacking, the major thing I change is when ever scroll direction changes, |
If it's not hacking then why do you add a comment explaining that it's a workaround for linux-specific bug in a system library? |
It seems it's already fixed in the kernel and mutter according to your screenshot? Why a change in tdesktop is needed then? |
it fixed for mutter and gtk, qt don't have such hi-res event -> low-res event feature builtin, and the function for similar thing in tdesktop |
Shouldn't that be enough? If compositor handles that, toolkits don't have to |
because I'm using X11? |
It seems it has, in the QAbstractSlider class (QAbstractSliderPrivate::scrollByDelta). So if you want to re-use it, you can instantiate an instance of it or QScrollBar (which inherits QAbstractSlider), forward the wheel event to it and use some of the signals: https://doc.qt.io/qt-6/qabstractslider.html#signals
Shouldn't we just wait for X11 to fix it? |
|
Just to be clear, there's no decision on your PR, it will be done by @john-preston. Yet I recommend to report this to your compositor which is apparently kwin according to your issue (at least because he has little spare time and may be unable to review your PR as fast as you would like). |
on some hi-res wheel supported mouse, the scroll experience is not good. at least on my logitech g903 ls, when I ↑↓↑↓ my wheel for compare two picture, the first scroll that after scroll direction changed will always lost.
closes #27252
related links: