From c2221a6d8e100a8e9b827b6d0f196fe202d87163 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 2 Apr 2026 15:57:24 +1100 Subject: [PATCH] fix: use height scaled region for top panel detection Same as bottom panel, doesn't take into account the 5px offset this way --- modules/drawers/Interactions.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml index 464d7777..aeabf401 100644 --- a/modules/drawers/Interactions.qml +++ b/modules/drawers/Interactions.qml @@ -42,7 +42,8 @@ CustomMouseArea { } function inTopPanel(panel: Item, x: real, y: real): bool { - return y < Math.max(Config.border.minThickness, Config.border.thickness + panel.height) + panel.y && withinPanelWidth(panel, x, y); + const panelHeight = panel.height * (1 - (panel.offsetScale ?? 0)); // qmllint disable missing-property + return y < Math.max(Config.border.minThickness, Config.border.thickness + panelHeight) && withinPanelWidth(panel, x, y); } function inBottomPanel(panel: Item, x: real, y: real, isCorner = false): bool {