mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:13:25 +00:00
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:
parent
b07a1cc8b6
commit
6422079de5
1 changed files with 1 additions and 0 deletions
|
@ -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().
|
||||
|
|
Loading…
Add table
Reference in a new issue