From ad09cfdcf127ebcfdaf80d68bee196b20fffa639 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Sun, 13 May 2018 17:57:22 +0200 Subject: [PATCH] Kirigami: Properly reuse the page when scrolling back Reviewed by Albert Astals --- mobile/components/DocumentView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/components/DocumentView.qml b/mobile/components/DocumentView.qml index 23bb64f52..5008128f0 100644 --- a/mobile/components/DocumentView.qml +++ b/mobile/components/DocumentView.qml @@ -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;