From f1ac2542a34455aaaacfb5ab8c9c42d949515125 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 29 Aug 2026 16:14:11 +0800 Subject: perf: replace onPositionChanged -> onEntered --- popups/launcher/components/App.qml | 2 +- popups/launcher/components/Clip.qml | 2 +- popups/launcher/components/Emoji.qml | 2 +- popups/launcher/components/Spell.qml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'popups') diff --git a/popups/launcher/components/App.qml b/popups/launcher/components/App.qml index e9dbcfd..4ac1fbe 100644 --- a/popups/launcher/components/App.qml +++ b/popups/launcher/components/App.qml @@ -178,7 +178,7 @@ IComponent { MouseArea { anchors.fill: parent hoverEnabled: true - onPositionChanged: { + onEntered: { root.selectedIndex = index; } onPressed: { diff --git a/popups/launcher/components/Clip.qml b/popups/launcher/components/Clip.qml index 576fabe..a842a73 100644 --- a/popups/launcher/components/Clip.qml +++ b/popups/launcher/components/Clip.qml @@ -175,7 +175,7 @@ IComponent { MouseArea { anchors.fill: parent hoverEnabled: true - onPositionChanged: { + onEntered: { root.selectedIndex = index; } onPressed: { diff --git a/popups/launcher/components/Emoji.qml b/popups/launcher/components/Emoji.qml index 97df7eb..175133f 100644 --- a/popups/launcher/components/Emoji.qml +++ b/popups/launcher/components/Emoji.qml @@ -177,7 +177,7 @@ IComponent { MouseArea { anchors.fill: parent hoverEnabled: true - onPositionChanged: root.selectedIndex = index + onEntered: root.selectedIndex = index onPressed: root._exec() } } diff --git a/popups/launcher/components/Spell.qml b/popups/launcher/components/Spell.qml index 31184ef..37633bf 100644 --- a/popups/launcher/components/Spell.qml +++ b/popups/launcher/components/Spell.qml @@ -183,7 +183,7 @@ IComponent { MouseArea { anchors.fill: parent hoverEnabled: true - onPositionChanged: { + onEntered: { root.selectedIndex = index; } onPressed: { -- cgit v1.2.3