summaryrefslogtreecommitdiffstats
path: root/qml/ToplistPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/ToplistPage.qml')
-rw-r--r--qml/ToplistPage.qml15
1 files changed, 9 insertions, 6 deletions
diff --git a/qml/ToplistPage.qml b/qml/ToplistPage.qml
index 018c42b..0ac47c9 100644
--- a/qml/ToplistPage.qml
+++ b/qml/ToplistPage.qml
@@ -5,22 +5,22 @@
** Contact: Yoann Lopes (yoann.lopes@nokia.com)
**
** This file is part of the MeeSpot project.
-**
+**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions
** are met:
-**
+**
** Redistributions of source code must retain the above copyright notice,
** this list of conditions and the following disclaimer.
-**
+**
** Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in the
** documentation and/or other materials provided with the distribution.
-**
+**
** Neither the name of Nokia Corporation and its Subsidiary(-ies) nor the names of its
** contributors may be used to endorse or promote products derived from
** this software without specific prior written permission.
-**
+**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
@@ -129,9 +129,11 @@ Page {
model: searchNew.albums
clip: true
snapMode: ListView.SnapToItem
- cacheBuffer: height * 2
+ cacheBuffer: 3000
pressDelay: 50
+ Component.onCompleted: positionViewAtBeginning()
+
delegate: SpotifyImage {
spotifyId: modelData.coverId
height: newAlbumsView.height
@@ -228,6 +230,7 @@ Page {
anchors.fill: parent
anchors.rightMargin: UI.MARGIN_XLARGE
anchors.leftMargin: UI.MARGIN_XLARGE
+ cacheBuffer: 8000
Component {
id: trackComponent