on xenial help sign in
tweak delegate caching
commit7ca570062ed1831ce3a6e0ea40922eafaaaadb5a authorNick Dedekind <nick.dedekind@canonical.com> dateTue 9 Sep 2014, 17:01 (12 years ago) parent76b890b
1 file changed+2−2
qml/Panel/Indicators/DefaultIndicatorPage.qml+2−2
qml/Panel/Indicators/DefaultIndicatorPage.qml+2−2
@@ -86,8 +86,8 @@ IndicatorBase {
8686 }
8787 }
8888
89− // Ensure all delegates are cached in order to improve smoothness of scrolling
90− cacheBuffer: height * 2
89+ // Don't load all the delegates (only max of 3 pages worth -1/0/+1)
90+ cacheBuffer: Math.max(height * 3, units.gu(70))
9191
9292 // Only allow flicking if the content doesn't fit on the page
9393 interactive: contentHeight > height