mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
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:
parent
94e2399425
commit
59ec6af0db
1 changed files with 11 additions and 0 deletions
|
|
@ -62,4 +62,15 @@ MobileShell.SwipeArea {
|
|||
onTouchpadScrollStarted: (point) => startSwipeWithPoint(point)
|
||||
onTouchpadScrollEnded: endSwipe()
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue