dashboard: invert scroll direction
use mouse natural scrolling
This commit is contained in:
parent
05d8a6a7cb
commit
f52ecc446f
1 changed files with 5 additions and 5 deletions
|
|
@ -114,16 +114,16 @@ Item {
|
||||||
rippleAnim.x = x;
|
rippleAnim.x = x;
|
||||||
rippleAnim.y = y - stateY;
|
rippleAnim.y = y - stateY;
|
||||||
|
|
||||||
const dist = (ox,oy) => ox*ox + oy*oy
|
const dist = (ox,oy) => ox * ox + oy * oy;
|
||||||
const stateEndY = stateY + stateWrapper.height
|
const stateEndY = stateY + stateWrapper.height;
|
||||||
rippleAnim.radius = Math.sqrt(Math.max(dist(0, stateY), dist(0, stateEndY), dist(width, stateY), dist(width, stateEndY)))
|
rippleAnim.radius = Math.sqrt(Math.max(dist(0, stateY), dist(0, stateEndY), dist(width, stateY), dist(width, stateEndY)));
|
||||||
|
|
||||||
rippleAnim.restart();
|
rippleAnim.restart();
|
||||||
}
|
}
|
||||||
onWheel: event => {
|
onWheel: event => {
|
||||||
if (event.angleDelta.y > 0)
|
if (event.angleDelta.y < 0)
|
||||||
tab.TabBar.tabBar.incrementCurrentIndex();
|
tab.TabBar.tabBar.incrementCurrentIndex();
|
||||||
else if (event.angleDelta.y < 0)
|
else if (event.angleDelta.y > 0)
|
||||||
tab.TabBar.tabBar.decrementCurrentIndex();
|
tab.TabBar.tabBar.decrementCurrentIndex();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue