From f52ecc446f733fe5c12b0652329203d2f7633fe6 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 2 Jun 2025 21:11:34 +1000 Subject: dashboard: invert scroll direction use mouse natural scrolling --- modules/dashboard/Tabs.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/dashboard/Tabs.qml') 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(); } -- cgit v1.2.3-freya