Fix main pane list scrolling?
This commit is contained in:
parent
c49f9b98b2
commit
566aaf3a51
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user