summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-02 21:11:34 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-02 21:11:34 +1000
commitf52ecc446f733fe5c12b0652329203d2f7633fe6 (patch)
tree87ec8f62a5e96d7905c528ade3de21d31237f833
parentbar: fix scroll areas (diff)
downloadcaelestia-shell-f52ecc446f733fe5c12b0652329203d2f7633fe6.tar.gz
caelestia-shell-f52ecc446f733fe5c12b0652329203d2f7633fe6.tar.bz2
caelestia-shell-f52ecc446f733fe5c12b0652329203d2f7633fe6.zip
dashboard: invert scroll direction
use mouse natural scrolling
-rw-r--r--modules/dashboard/Tabs.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/dashboard/Tabs.qml b/modules/dashboard/Tabs.qml
index d33940a..945f71c 100644
--- a/modules/dashboard/Tabs.qml
+++ b/modules/dashboard/Tabs.qml
@@ -114,16 +114,16 @@ Item {
rippleAnim.x = x;
rippleAnim.y = y - stateY;
- const dist = (ox,oy) => ox*ox + oy*oy
- const stateEndY = stateY + stateWrapper.height
- rippleAnim.radius = Math.sqrt(Math.max(dist(0, stateY), dist(0, stateEndY), dist(width, stateY), dist(width, stateEndY)))
+ const dist = (ox,oy) => ox * ox + oy * oy;
+ const stateEndY = stateY + stateWrapper.height;
+ rippleAnim.radius = Math.sqrt(Math.max(dist(0, stateY), dist(0, stateEndY), dist(width, stateY), dist(width, stateEndY)));
rippleAnim.restart();
}
onWheel: event => {
- if (event.angleDelta.y > 0)
+ if (event.angleDelta.y < 0)
tab.TabBar.tabBar.incrementCurrentIndex();
- else if (event.angleDelta.y < 0)
+ else if (event.angleDelta.y > 0)
tab.TabBar.tabBar.decrementCurrentIndex();
}