diff options
Diffstat (limited to 'modules/drawers/Interactions.qml')
| -rw-r--r-- | modules/drawers/Interactions.qml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml index b3e717a..0a00219 100644 --- a/modules/drawers/Interactions.qml +++ b/modules/drawers/Interactions.qml @@ -81,7 +81,7 @@ MouseArea { } // Show/hide session on drag - if (pressed && withinPanelHeight(panels.session, x, y)) { + if (pressed && inRightPanel(panels.session, dragStart.x, dragStart.y) && withinPanelHeight(panels.session, x, y)) { const dragX = x - dragStart.x; if (dragX < -Config.session.dragThreshold) visibilities.session = true; @@ -89,6 +89,15 @@ MouseArea { visibilities.session = false; } + // Show/hide launcher on drag + if (pressed && inBottomPanel(panels.launcher, dragStart.x, dragStart.y) && withinPanelWidth(panels.launcher, x, y)) { + const dragY = y - dragStart.y; + if (dragY < -Config.launcher.dragThreshold) + visibilities.launcher = true; + else if (dragY > Config.launcher.dragThreshold) + visibilities.launcher = false; + } + // Show dashboard on hover const showDashboard = inTopPanel(panels.dashboard, x, y); |