diff --git a/Modules/Launcher/Launcher.qml b/Modules/Launcher/Launcher.qml index f4a7fd4d..f6ec7ae9 100644 --- a/Modules/Launcher/Launcher.qml +++ b/Modules/Launcher/Launcher.qml @@ -171,23 +171,23 @@ NPanel { property bool initialized: false onPositionChanged: mouse => { - // Store initial position - if (!initialized) { - lastX = mouse.x - lastY = mouse.y - initialized = true - return - } + // Store initial position + if (!initialized) { + lastX = mouse.x + lastY = mouse.y + initialized = true + return + } - // Check if mouse actually moved - const deltaX = Math.abs(mouse.x - lastX) - const deltaY = Math.abs(mouse.y - lastY) - if (deltaX > 1 || deltaY > 1) { - root.ignoreMouseHover = false - lastX = mouse.x - lastY = mouse.y - } - } + // Check if mouse actually moved + const deltaX = Math.abs(mouse.x - lastX) + const deltaY = Math.abs(mouse.y - lastY) + if (deltaX > 1 || deltaY > 1) { + root.ignoreMouseHover = false + lastX = mouse.x + lastY = mouse.y + } + } // Reset when launcher opens Connections {