Improve performance of Connections for hover handler

This commit is contained in:
Devin Lin
2021-03-17 21:20:15 -04:00
parent dd20df5c26
commit e2aefb6bdc

View File

@@ -131,10 +131,9 @@ Kirigami.ScrollablePage {
// hover actions on a delegate, activated in TimelineContainer.qml
Connections {
target: page.flickable
enabled: hoverActions.visible
function onContentYChanged() {
if (hoverActions.visible) {
hoverActions.updateFunction();
}
hoverActions.updateFunction();
}
}
Item {