Summary: | Keyboard brightness controls with stepped values allows scrolling in between values | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Antti Savolainen <antti.savo> |
Component: | Brightness and Color widget | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fanzhuyifan, natalie_clarius |
Priority: | NOR | ||
Version First Reported In: | 5.27.10 | ||
Target Milestone: | 1.0 | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
See Also: | https://bugreports.qt.io/browse/QTBUG-93081 | ||
Latest Commit: | https://invent.kde.org/plasma/libplasma/-/commit/249c56925682c478ef2b4be18cfc0b0fcefa2e92 | Version Fixed In: | 6.0 |
Sentry Crash Report: |
Description
Antti Savolainen
2024-01-16 04:44:56 UTC
This is a known upstream Qt issue. https://bugreports.qt.io/browse/QTBUG-93081 See also: https://codereview.qt-project.org/c/qt/qtdeclarative/+/512061 Git commit aea3d4b131070d8388edf84c9c2a32f7b4203617 by Yifan Zhu. Committed on 13/02/2024 at 20:01. Pushed by fanzhuyifan into branch 'master'. Slider: Fix slider scrolling direction We always want the slider to increase its value when scrolling up or right, no matter the inverted scrolling setting. For "regular" scrolling, this corresponds to positive values on the Y axis and negative values on the X axis. For "natural" scrolling (indicated by the `inverted` property) is the opposite so we need to reverse the sign. Note that the Qt documentation on WheelEvent is dubious: On https://doc.qt.io/qt-5/qml-qtquick-wheelevent.html, the `angleDelta` section suggests that positive should be up/right, but the `inverted` section indicates the above mentioned behavior. This commit borrows from Slider.qml and 5d6d74ef68889da7400cb2a16a73527f1927424d in qqc2-desktop-style. Related: bug 479028 FIXED-IN: 6.0 M +38 -1 src/declarativeimports/plasmacomponents3/Slider.qml https://invent.kde.org/plasma/libplasma/-/commit/aea3d4b131070d8388edf84c9c2a32f7b4203617 Git commit 249c56925682c478ef2b4be18cfc0b0fcefa2e92 by Yifan Zhu. Committed on 13/02/2024 at 20:04. Pushed by fanzhuyifan into branch 'Plasma/6.0'. Slider: Fix slider scrolling direction We always want the slider to increase its value when scrolling up or right, no matter the inverted scrolling setting. For "regular" scrolling, this corresponds to positive values on the Y axis and negative values on the X axis. For "natural" scrolling (indicated by the `inverted` property) is the opposite so we need to reverse the sign. Note that the Qt documentation on WheelEvent is dubious: On https://doc.qt.io/qt-5/qml-qtquick-wheelevent.html, the `angleDelta` section suggests that positive should be up/right, but the `inverted` section indicates the above mentioned behavior. This commit borrows from Slider.qml and 5d6d74ef68889da7400cb2a16a73527f1927424d in qqc2-desktop-style. Related: bug 479028 FIXED-IN: 6.0 (cherry picked from commit aea3d4b131070d8388edf84c9c2a32f7b4203617) M +38 -1 src/declarativeimports/plasmacomponents3/Slider.qml https://invent.kde.org/plasma/libplasma/-/commit/249c56925682c478ef2b4be18cfc0b0fcefa2e92 |