From 5513158f8961eb26975c263eeef4d25e6ad9c31e 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/ui/StatusQ/src/StatusQ/Components/StatusTagSelector.qml b/ui/StatusQ/src/StatusQ/Components/StatusTagSelector.qml index 14dee6868c..e43b2a830e 100644 --- a/ui/StatusQ/src/StatusQ/Components/StatusTagSelector.qml +++ b/ui/StatusQ/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);