From 790e1a30ccf83a40fbf3aedbab92b5ba8052f456 Mon Sep 17 00:00:00 2001 From: Soramane <61896496+soramanew@users.noreply.github.com> Date: Sat, 26 Jul 2025 14:40:48 +1000 Subject: dashboard: show on hover (for touch devices) --- modules/drawers/Interactions.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/drawers') diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml index 6640d22..7eeccf1 100644 --- a/modules/drawers/Interactions.qml +++ b/modules/drawers/Interactions.qml @@ -127,6 +127,15 @@ MouseArea { dashboardShortcutActive = false; } + // Show/hide dashboard on drag (for touchscreen devices) + if (pressed && inTopPanel(panels.dashboard, dragStart.x, dragStart.y) && withinPanelWidth(panels.dashboard, x, y)) { + const dragY = y - dragStart.y; + if (dragY > Config.dashboard.dragThreshold) + visibilities.dashboard = true; + else if (dragY < -Config.dashboard.dragThreshold) + visibilities.dashboard = false; + } + // Show utilities on hover const showUtilities = inBottomPanel(panels.utilities, x, y); -- cgit v1.2.3-freya