diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-08-26 14:18:51 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-08-26 14:18:51 +0800 |
| commit | d0e6182583af1fd2a7080b3a7245b84fe2e8692a (patch) | |
| tree | ba71c027a543a10453446dbe2251de3bac698e9a /popups | |
| parent | 13ccf9f49527950b12d2e000e2e79b6fe4d76afc (diff) | |
Revert "MouseArea: attempt to replace all MouseArea to modern non stealing"
This reverts commit a41ab9ad95b4f8e053af82741a45f747e77ff37a.
HoverHandler's point is spammy
Diffstat (limited to 'popups')
| -rw-r--r-- | popups/launcher/components/App.qml | 16 | ||||
| -rw-r--r-- | popups/launcher/components/Emoji.qml | 16 | ||||
| -rw-r--r-- | popups/launcher/components/Spell.qml | 15 |
3 files changed, 17 insertions, 30 deletions
diff --git a/popups/launcher/components/App.qml b/popups/launcher/components/App.qml index f3ce41d..e9dbcfd 100644 --- a/popups/launcher/components/App.qml +++ b/popups/launcher/components/App.qml @@ -175,18 +175,14 @@ IComponent { } } - TapHandler { - acceptedButtons: Qt.LeftButton - onTapped: { + MouseArea { + anchors.fill: parent + hoverEnabled: true + onPositionChanged: { root.selectedIndex = index; - root._exec(); } - } - HoverHandler { - onPointChanged: { - if (hovered) { - root.selectedIndex = index; - } + onPressed: { + root._exec(); } } } diff --git a/popups/launcher/components/Emoji.qml b/popups/launcher/components/Emoji.qml index 5dc9cd6..97df7eb 100644 --- a/popups/launcher/components/Emoji.qml +++ b/popups/launcher/components/Emoji.qml @@ -174,17 +174,11 @@ IComponent { } } - HoverHandler { - onPointChanged: { - if (hovered) - root.selectedIndex = index; - } - } - TapHandler { - onTapped: { - root.selectedIndex = index; - root._exec(); - } + MouseArea { + anchors.fill: parent + hoverEnabled: true + onPositionChanged: root.selectedIndex = index + onPressed: root._exec() } } diff --git a/popups/launcher/components/Spell.qml b/popups/launcher/components/Spell.qml index 1f8a15c..31184ef 100644 --- a/popups/launcher/components/Spell.qml +++ b/popups/launcher/components/Spell.qml @@ -180,16 +180,13 @@ IComponent { color: index === selectedIndex ? Colors.foreground1 : Colors.foreground2 } - HoverHandler { - onPointChanged: { - if (hovered) { - root.selectedIndex = index; - } - } - } - TapHandler { - onTapped: { + MouseArea { + anchors.fill: parent + hoverEnabled: true + onPositionChanged: { root.selectedIndex = index; + } + onPressed: { root._exec(); } } |
