dashboard: invert scroll direction

use mouse natural scrolling
This commit is contained in:
2 * r + 2 * t 2025-06-02 21:11:34 +10:00
parent 05d8a6a7cb
commit f52ecc446f

View file

@ -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();
}