1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

feat: Added reverse workspace scrolling (#1179)

* added reverse scrolling to settings and widget

* added support for dankbar scrolling

* Better settings description

* removed isNiri conditional from search index
This commit is contained in:
vha
2025-12-27 19:47:50 +01:00
committed by GitHub
parent e7f94c94cc
commit fbe362cd20
6 changed files with 35 additions and 3 deletions

View File

@@ -675,7 +675,7 @@ Item {
const delta = wheel.angleDelta.y;
const isMouseWheel = Math.abs(delta) >= 120 && (Math.abs(delta) % 120) === 0;
const direction = delta < 0 ? 1 : -1;
const direction = delta * -SettingsData.reverseScrolling < 0 ? 1 : -1;
if (isMouseWheel) {
root.switchWorkspace(direction);