Cache app grid items to smooth out jank during scrolling and resizing

This commit is contained in:
Cameron Gutman
2018-07-08 23:34:30 -07:00
parent a56d27e3f2
commit 644c3c0c24

View File

@@ -18,6 +18,10 @@ GridView {
cellWidth: 225; cellHeight: 350;
focus: true
// Cache delegates for 1000px in both directions to improve
// scrolling and resizing performance
cacheBuffer: 1000
// The StackView will trigger a visibility change when
// we're pushed onto it, causing our onVisibleChanged
// routine to run, but only if we start as invisible