From 220d25588f6e7c17131dba1c07ad4b4b8ec7f559 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 18 Mar 2017 17:05:16 -0700 Subject: QML UI: enable caching of the details view This way the dive on either side should be cached. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveDetails.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'mobile-widgets/qml/DiveDetails.qml') diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index c58c75023..35ef63579 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -189,6 +189,7 @@ Kirigami.Page { highlightFollowsCurrentItem: true focus: true clip: false + cacheBuffer: parent.width * 3 // cache one item on either side (this is in pixels) snapMode: ListView.SnapOneItem onMovementEnded: { currentIndex = indexAt(contentX+1, 1); -- cgit v1.2.3-70-g09d2