Toggle action drawer on click in convergence mode

Use the new SwipeArea clicked() signal to open/close the action
drawer on a single click when convergence mode is enabled. The
existing swipe gesture remains available as a fallback.
This commit is contained in:
Marco Allegretti 2026-04-08 19:07:12 +02:00
parent 94e2399425
commit 59ec6af0db

View file

@ -62,4 +62,15 @@ MobileShell.SwipeArea {
onTouchpadScrollStarted: (point) => startSwipeWithPoint(point) onTouchpadScrollStarted: (point) => startSwipeWithPoint(point)
onTouchpadScrollEnded: endSwipe() onTouchpadScrollEnded: endSwipe()
onTouchpadScrollMove: (totalDeltaX, totalDeltaY, deltaX, deltaY) => updateOffset(deltaY); onTouchpadScrollMove: (totalDeltaX, totalDeltaY, deltaX, deltaY) => updateOffset(deltaY);
// In convergence mode, allow click to toggle the action drawer (mouse-friendly)
onClicked: {
if (ShellSettings.Settings.convergenceModeEnabled) {
if (actionDrawer.intendedToBeVisible) {
actionDrawer.close();
} else {
actionDrawer.open();
}
}
}
} }