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,12 +131,11 @@ Kirigami.ScrollablePage {
// hover actions on a delegate, activated in TimelineContainer.qml // hover actions on a delegate, activated in TimelineContainer.qml
Connections { Connections {
target: page.flickable target: page.flickable
enabled: hoverActions.visible
function onContentYChanged() { function onContentYChanged() {
if (hoverActions.visible) {
hoverActions.updateFunction(); hoverActions.updateFunction();
} }
} }
}
Item { Item {
id: hoverActions id: hoverActions
property bool showEdit property bool showEdit