Skip to content

Commit

Permalink
scroll to current image in quick selection list on component completed
Browse files Browse the repository at this point in the history
  • Loading branch information
rabauke committed Sep 23, 2023
1 parent d55544d commit b81e348
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions qml/pages/MainPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,8 @@ Page {
VerticalScrollDecorator {
flickable: listView
}
}
onStatusChanged: {
if (status === PageStatus.Active) {
listView.positionViewAtIndex(appView.imageListCurrentIndex,
ListView.Center)
}

Component.onCompleted: positionViewAtIndex(appView.imageListCurrentIndex, ListView.Beginning)
}
}
}
Expand Down

0 comments on commit b81e348

Please sign in to comment.