From e2aefb6bdcb5cb90b58ab7eaf85e807d3b0b9184 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Wed, 17 Mar 2021 21:20:15 -0400 Subject: [PATCH] Improve performance of Connections for hover handler --- imports/NeoChat/Page/RoomPage.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/imports/NeoChat/Page/RoomPage.qml b/imports/NeoChat/Page/RoomPage.qml index 07193a912..ab5df0cbf 100644 --- a/imports/NeoChat/Page/RoomPage.qml +++ b/imports/NeoChat/Page/RoomPage.qml @@ -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 {