mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 23:42:51 -05:00
* added reverse scrolling to settings and widget * added support for dankbar scrolling * Better settings description * removed isNiri conditional from search index * fix #1179 breaking normal scroll direction
This commit is contained in:
@@ -675,7 +675,8 @@ Item {
|
||||
|
||||
const delta = wheel.angleDelta.y;
|
||||
const isMouseWheel = Math.abs(delta) >= 120 && (Math.abs(delta) % 120) === 0;
|
||||
const direction = delta * -SettingsData.reverseScrolling < 0 ? 1 : -1;
|
||||
const reverse = SettingsData.reverseScrolling ? -1 : 1;
|
||||
const direction = delta * reverse < 0 ? 1 : -1;
|
||||
|
||||
if (isMouseWheel) {
|
||||
root.switchWorkspace(direction);
|
||||
|
||||
Reference in New Issue
Block a user