Mobile: when selecting dive via map, update details view

We updated the selected dive in the dive list, but not the one shown in
the details view.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-10-07 16:42:33 -05:00
parent b07a1cc8b6
commit 6422079de5

View file

@ -613,6 +613,7 @@ Kirigami.ScrollablePage {
function setCurrentDiveListIndex(idx, noScroll) {
diveListView.currentIndex = idx
detailsWindow.showDiveIndex(idx)
// updating the index of the ListView triggers a non-linear scroll
// animation that can be very slow. the fix is to stop this animation
// by setting contentY to itself and then using positionViewAtIndex().