Improve performance of Connections for hover handler
This commit is contained in:
@@ -131,10 +131,9 @@ 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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user