fix: use height scaled region for top panel detection
Same as bottom panel, doesn't take into account the 5px offset this way
This commit is contained in:
parent
2dffd4fbfd
commit
c2221a6d8e
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue