Reintroduce (reduced) event list cacheBuffer

This is needed until we have proper url preview support
This commit is contained in:
miruka 2019-11-22 10:36:59 -04:00
parent 6eff9e0513
commit 1d3ca08957

View File

@ -71,6 +71,10 @@ Rectangle {
bottomMargin: theme.spacing bottomMargin: theme.spacing
verticalLayoutDirection: ListView.BottomToTop verticalLayoutDirection: ListView.BottomToTop
// Keep x scroll pages cached, to limit images having to be
// reloaded from network.
cacheBuffer: height * 2
onYPosChanged: onYPosChanged:
if (canLoad && yPos < 0.1) Qt.callLater(loadPastEvents) if (canLoad && yPos < 0.1) Qt.callLater(loadPastEvents)