launcher: fix showOnHover

Closes #591
Fixes #562
This commit is contained in:
2 * r + 2 * t 2025-09-10 14:34:59 +10:00
parent 6d351b57ae
commit b6b2adf056

View file

@ -123,7 +123,8 @@ CustomMouseArea {
// Show launcher on hover, or show/hide on drag if hover is disabled // Show launcher on hover, or show/hide on drag if hover is disabled
if (Config.launcher.showOnHover) { if (Config.launcher.showOnHover) {
visibilities.launcher = inBottomPanel(panels.launcher, x, y); if (!visibilities.launcher && inBottomPanel(panels.launcher, x, y))
visibilities.launcher = true;
} else if (pressed && inBottomPanel(panels.launcher, dragStart.x, dragStart.y) && withinPanelWidth(panels.launcher, x, y)) { } else if (pressed && inBottomPanel(panels.launcher, dragStart.x, dragStart.y) && withinPanelWidth(panels.launcher, x, y)) {
const dragY = y - dragStart.y; const dragY = y - dragStart.y;
if (dragY < -Config.launcher.dragThreshold) if (dragY < -Config.launcher.dragThreshold)