Kirigami: Properly reuse the page when scrolling back

Reviewed by Albert Astals
This commit is contained in:
Aleix Pol 2018-05-13 17:57:22 +02:00
parent ac53737242
commit ad09cfdcf1

View File

@ -269,8 +269,8 @@ QtControls.ScrollView {
} else {
root.document.currentPage--;
mouseArea.currPageDelegate = oldPrev;
mouseArea.prevPageDelegate = oldCur;
mouseArea. nextPageDelegate = oldNext;
mouseArea.nextPageDelegate = oldCur;
mouseArea.prevPageDelegate = oldNext;
}
mouseArea.currPageDelegate.z = 2;
mouseArea.prevPageDelegate.z = 1;