From 1d3ca08957b99c44f2996e4c541b8c124c15e0e3 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 22 Nov 2019 10:36:59 -0400 Subject: [PATCH] Reintroduce (reduced) event list cacheBuffer This is needed until we have proper url preview support --- src/qml/Chat/Timeline/EventList.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qml/Chat/Timeline/EventList.qml b/src/qml/Chat/Timeline/EventList.qml index 4ca24cf9..6c9962c1 100644 --- a/src/qml/Chat/Timeline/EventList.qml +++ b/src/qml/Chat/Timeline/EventList.qml @@ -71,6 +71,10 @@ Rectangle { bottomMargin: theme.spacing verticalLayoutDirection: ListView.BottomToTop + // Keep x scroll pages cached, to limit images having to be + // reloaded from network. + cacheBuffer: height * 2 + onYPosChanged: if (canLoad && yPos < 0.1) Qt.callLater(loadPastEvents)