1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

ws: disable window scrolling toggle when not niri

This commit is contained in:
bbedward
2025-10-17 08:40:26 -04:00
parent 3cdc1a9c81
commit 5696a36115
4 changed files with 98 additions and 84 deletions

View File

@@ -255,7 +255,7 @@ Rectangle {
const direction = deltaY < 0 ? 1 : -1
if (isMouseWheel) {
if (!SettingsData.workspaceScrolling) {
if (!SettingsData.workspaceScrolling || !CompositorService.isNiri) {
switchWorkspace(direction)
}
else {
@@ -269,7 +269,7 @@ Rectangle {
currentIndex = i;
break;
}
}
let nextIndex;
if (deltaY < 0) {
@@ -296,7 +296,7 @@ Rectangle {
if (Math.abs(scrollAccumulator) >= touchpadThreshold) {
const touchDirection = scrollAccumulator < 0 ? 1 : -1
if (!SettingsData.workspaceScrolling) {
if (!SettingsData.workspaceScrolling || !CompositorService.isNiri) {
switchWorkspace(touchDirection)
}
else {
@@ -310,7 +310,7 @@ Rectangle {
currentIndex = i;
break;
}
}
let nextIndex;
if (deltaY < 0) {