forked from openkylin/ukui-menu
添加全屏菜单标签跟随滑动
This commit is contained in:
parent
544f7c8894
commit
b0b030096b
|
@ -389,6 +389,17 @@ RowLayout {
|
|||
}
|
||||
}
|
||||
|
||||
onContentYChanged: {
|
||||
if (contentYAnimation.running) {
|
||||
return
|
||||
}
|
||||
if ((contentY + height) === contentHeight) {
|
||||
labelListView.currentIndex = labelRepeater.count - 1
|
||||
return
|
||||
}
|
||||
labelListView.currentIndex = labelColumn.childAt(contentX,contentY).labelIndex
|
||||
}
|
||||
|
||||
NumberAnimation {
|
||||
id: contentYAnimation
|
||||
target: labelViewFlickable
|
||||
|
|
Loading…
Reference in New Issue