Fix main pane list position when kb-scrolling top

This commit is contained in:
miruka 2020-03-07 12:37:39 -04:00
parent 5709b5b756
commit 617e68cc71

View File

@ -41,11 +41,8 @@ HListView {
Binding { Binding {
target: mainPaneList target: mainPaneList
property: "contentY" property: "contentY"
value: Math.max( value: highlightRectangle.y + highlightRectangle.height / 2 -
0, mainPaneList.height / 2
highlightRectangle.y + highlightRectangle.height / 2 -
mainPaneList.height / 2,
)
delayed: true delayed: true
when: yAnimation.running when: yAnimation.running
} }