From c125f1c7e45cc53b104436dae17f9fe327698d18 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 19 Jun 2025 17:05:40 +1000 Subject: internal: fix qmlls freezing --- modules/drawers/Interactions.qml | 8 ++++---- modules/launcher/Content.qml | 6 +----- 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'modules') diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml index d38cc8a..54cb24c 100644 --- a/modules/drawers/Interactions.qml +++ b/modules/drawers/Interactions.qml @@ -51,10 +51,10 @@ MouseArea { } } - onPositionChanged: ({ - x, - y - }) => { + onPositionChanged: event => { + const x = event.x; + const y = event.y; + // Show osd on hover const showOsd = inRightPanel(panels.osd, x, y); diff --git a/modules/launcher/Content.qml b/modules/launcher/Content.qml index 9ab6b40..26496a6 100644 --- a/modules/launcher/Content.qml +++ b/modules/launcher/Content.qml @@ -128,7 +128,7 @@ Item { return 0; if (mouse.pressed) return 0.7; - if (mouse.hovered) + if (mouse.containsMouse) return 0.8; return 1; } @@ -139,14 +139,10 @@ Item { MouseArea { id: mouse - property bool hovered - anchors.fill: parent hoverEnabled: true cursorShape: search.text ? Qt.PointingHandCursor : undefined - onEntered: hovered = true - onExited: hovered = false onClicked: search.text = "" } -- cgit v1.2.3-freya