Fix main pane list scrolling?

This commit is contained in:
miruka 2020-03-07 09:32:56 -04:00
parent c49f9b98b2
commit 566aaf3a51

View File

@ -43,15 +43,18 @@ HListView {
property: "contentY"
value: Math.max(
0,
Math.min(
mainPaneList.contentHeight - mainPaneList.height,
highlightRectangle.y + highlightRectangle.height / 2 -
mainPaneList.height / 2,
),
highlightRectangle.y + highlightRectangle.height / 2 -
mainPaneList.height / 2,
)
delayed: true
when: yAnimation.running
}
Connections {
target: mainPaneList
enabled: yAnimation.running
onContentYChanged: mainPaneList.returnToBounds()
}
}