fix: account for bottom panel offset when checking hover

Basically only affects utilities panel cause it's in the corner
This commit is contained in:
2 * r + 2 * t 2026-03-27 19:23:54 +11:00
parent c4399efbe4
commit ff57473781

View file

@ -44,7 +44,8 @@ CustomMouseArea {
} }
function inBottomPanel(panel: Item, x: real, y: real, isCorner = false): bool { 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 { function onWheel(event: WheelEvent): void {