fix: invert nexus page anim direction
This commit is contained in:
parent
99a2d6ac18
commit
682356f9da
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ Item {
|
||||||
Connections {
|
Connections {
|
||||||
function onCurrentPageIdxChanged(): void {
|
function onCurrentPageIdxChanged(): void {
|
||||||
switchAnim.complete();
|
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();
|
switchAnim.start();
|
||||||
root.lastPageIdx = root.nState.currentPageIdx;
|
root.lastPageIdx = root.nState.currentPageIdx;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue