From c53800f0d3b15f27e8a9dbc3770d9d19691baa8a Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Sun, 19 May 2013 02:36:11 +0200 Subject: [PATCH] create station wizard: workaround slow fist scrolling of the ListView --- data/qml/StationView.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/qml/StationView.qml b/data/qml/StationView.qml index 3448c3adb..3ce7639c6 100644 --- a/data/qml/StationView.qml +++ b/data/qml/StationView.qml @@ -67,6 +67,12 @@ Rectangle { onItemClicked: { stationCreator.modeIndex = index + + // FIXME: This is a workaround for the ListView scrolling too slow on the first time + // Lets reinitialize the current index to something invalid and back to 0 (what it already is) before scrolling over to page 1 + stationListView.currentIndex = -1 + stationListView.currentIndex = 0 + stationListView.incrementCurrentIndex() header.subtitle = modeModel.get(index).headerSubtitle + "..." }