From b9188972419893d091286e5f97d75843fdff5779 Mon Sep 17 00:00:00 2001 From: Boris Melnik Date: Thu, 19 May 2022 11:42:18 +0300 Subject: [PATCH] fix(StatusTagSelector): Fix mouse hover (#678) Closes: status-im/status-desktop#5220 --- src/StatusQ/Components/StatusTagSelector.qml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/StatusQ/Components/StatusTagSelector.qml b/src/StatusQ/Components/StatusTagSelector.qml index 14dee686..e43b2a83 100644 --- a/src/StatusQ/Components/StatusTagSelector.qml +++ b/src/StatusQ/Components/StatusTagSelector.qml @@ -355,8 +355,8 @@ Item { anchors.rightMargin: 8 anchors.leftMargin: 8 radius: 8 - visible: (root.sortedList.count > 0) - color: (userListView.currentIndex === index) ? Theme.palette.baseColor2 : "transparent" + visible: wrapper.ListView.isCurrentItem + color: Theme.palette.baseColor2 } StatusSmartIdenticon { @@ -393,12 +393,14 @@ Item { } MouseArea { + id: sensor cursorShape: enabled ? Qt.PointingHandCursor : Qt.ArrowCursor acceptedButtons: Qt.LeftButton | Qt.RightButton anchors.fill: parent hoverEnabled: true - onEntered: { - userListView.currentIndex = index; + onContainsMouseChanged: { + if (containsMouse) + userListView.currentIndex = index; } onClicked: { root.insertTag(model.name, model.publicId);