Fix main pane list scrolling?
This commit is contained in:
parent
c49f9b98b2
commit
566aaf3a51
|
@ -43,15 +43,18 @@ HListView {
|
||||||
property: "contentY"
|
property: "contentY"
|
||||||
value: Math.max(
|
value: Math.max(
|
||||||
0,
|
0,
|
||||||
Math.min(
|
highlightRectangle.y + highlightRectangle.height / 2 -
|
||||||
mainPaneList.contentHeight - mainPaneList.height,
|
mainPaneList.height / 2,
|
||||||
highlightRectangle.y + highlightRectangle.height / 2 -
|
|
||||||
mainPaneList.height / 2,
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
delayed: true
|
delayed: true
|
||||||
when: yAnimation.running
|
when: yAnimation.running
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: mainPaneList
|
||||||
|
enabled: yAnimation.running
|
||||||
|
onContentYChanged: mainPaneList.returnToBounds()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user