QML UI: enable caching of the details view

This way the dive on either side should be cached.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-03-18 17:05:16 -07:00
parent 783f9ee565
commit 220d25588f

View file

@ -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);