From ff574737818112487333b0ad4f1fdd0b1bbdcaa5 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 27 Mar 2026 19:23:54 +1100 Subject: [PATCH] fix: account for bottom panel offset when checking hover Basically only affects utilities panel cause it's in the corner --- 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 fbf8ccad..15958ea1 100644 --- a/modules/drawers/Interactions.qml +++ b/modules/drawers/Interactions.qml @@ -44,7 +44,8 @@ CustomMouseArea { } function inBottomPanel(panel: Item, x: real, y: real, isCorner = false): bool { - return y > height - Math.max(Config.border.minThickness, Config.border.thickness + panel.height) - (isCorner ? Config.border.rounding : 0) && withinPanelWidth(panel, x, y); + const panelHeight = panel.height * (1 - (panel.offsetScale ?? 0)); // qmllint disable missing-property + return y > height - Math.max(Config.border.minThickness, Config.border.thickness + panelHeight) - (isCorner ? Config.border.rounding : 0) && withinPanelWidth(panel, x, y); } function onWheel(event: WheelEvent): void {