diff --git a/client/ui/qml/Controls2/DrawerType.qml b/client/ui/qml/Controls2/DrawerType.qml index 34b141b4..60db1e48 100644 --- a/client/ui/qml/Controls2/DrawerType.qml +++ b/client/ui/qml/Controls2/DrawerType.qml @@ -2,6 +2,7 @@ import QtQuick import QtQuick.Controls Drawer { + id: drawer property bool needCloseButton: true Connections { @@ -66,4 +67,16 @@ Drawer { PageController.updateNavigationBarColor(initialPageNavigationBarColor) } } + + MouseArea { + id: mouseArea + anchors.fill: parent + + onCanceled: { + Drag.cancel() + drawer.close() + } + + preventStealing: false + } }