fix: invert nexus page anim direction

This commit is contained in:
2 * r + 2 * t 2026-06-05 15:45:17 +10:00
parent 99a2d6ac18
commit 682356f9da

View file

@ -35,7 +35,7 @@ Item {
Connections {
function onCurrentPageIdxChanged(): void {
switchAnim.complete();
root.animOff = root.Tokens.padding.extraLarge * (root.nState.currentPageIdx > root.lastPageIdx ? -1 : 1);
root.animOff = root.Tokens.padding.extraLarge * (root.nState.currentPageIdx > root.lastPageIdx ? 1 : -1);
switchAnim.start();
root.lastPageIdx = root.nState.currentPageIdx;
}