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:
parent
c4399efbe4
commit
ff57473781
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue