From 7adea6fd3d8260fd5f9fb9e2619b08d28b6a7db0 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Mon, 27 Dec 2021 19:03:00 -0500 Subject: [PATCH] actiondrawer: Ensure that new swipes always re-open the overlay --- .../mobileshell/qml/actiondrawer/ActionDrawerOpenSurface.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/mobileshell/qml/actiondrawer/ActionDrawerOpenSurface.qml b/components/mobileshell/qml/actiondrawer/ActionDrawerOpenSurface.qml index 479c3d61..84487070 100644 --- a/components/mobileshell/qml/actiondrawer/ActionDrawerOpenSurface.qml +++ b/components/mobileshell/qml/actiondrawer/ActionDrawerOpenSurface.qml @@ -17,6 +17,10 @@ MouseArea { property int oldMouseY: 0 function startSwipe() { + if (actionDrawer.visible) { + // ensure the action drawer state is consistent + actionDrawer.closeImmediately(); + } actionDrawer.cancelAnimations(); actionDrawer.dragging = true; actionDrawer.opened = false;