mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
783f9ee565
commit
220d25588f
1 changed files with 1 additions and 0 deletions
|
@ -189,6 +189,7 @@ Kirigami.Page {
|
||||||
highlightFollowsCurrentItem: true
|
highlightFollowsCurrentItem: true
|
||||||
focus: true
|
focus: true
|
||||||
clip: false
|
clip: false
|
||||||
|
cacheBuffer: parent.width * 3 // cache one item on either side (this is in pixels)
|
||||||
snapMode: ListView.SnapOneItem
|
snapMode: ListView.SnapOneItem
|
||||||
onMovementEnded: {
|
onMovementEnded: {
|
||||||
currentIndex = indexAt(contentX+1, 1);
|
currentIndex = indexAt(contentX+1, 1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue