osd: fix show on hover
This commit is contained in:
parent
925c5176ae
commit
a2c3417675
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ Variants {
|
||||||
target: Drawers
|
target: Drawers
|
||||||
|
|
||||||
function onPosChanged(screen: ShellScreen, x: int, y: int): void {
|
function onPosChanged(screen: ShellScreen, x: int, y: int): void {
|
||||||
if (screen === root.modelData && x > screen.width / 2 && y > (screen.height - root.winHeight) / 2 && y < (screen.height + root.winHeight) / 2)
|
if (screen === root.modelData && x > screen.width - BorderConfig.thickness && y > (screen.height - root.winHeight) / 2 && y < (screen.height + root.winHeight) / 2)
|
||||||
root.show();
|
root.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue