From d9495bc714b4612532a33155db34044f7aef52cf Mon Sep 17 00:00:00 2001 From: Micah Stanley Date: Sat, 22 Mar 2025 12:56:32 +0000 Subject: [PATCH] actiondrawer: fix swipearea references --- components/mobileshell/qml/actiondrawer/ActionDrawer.qml | 6 +----- .../mobileshell/qml/actiondrawer/ContentContainer.qml | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/components/mobileshell/qml/actiondrawer/ActionDrawer.qml b/components/mobileshell/qml/actiondrawer/ActionDrawer.qml index d099deeb..635d4eb2 100644 --- a/components/mobileshell/qml/actiondrawer/ActionDrawer.qml +++ b/components/mobileshell/qml/actiondrawer/ActionDrawer.qml @@ -132,10 +132,6 @@ Item { */ signal runPendingNotificationAction() - onOpenedChanged: { - if (opened) swipeArea.focus = true; - } - property real oldOffset onOffsetChanged: { if (offset < 0) { @@ -149,7 +145,7 @@ Item { oldOffset = offset; // close panel immediately after panel is not shown, and the flickable is not being dragged - if (opened && root.offset <= 0 && !swipeArea.moving && !drawerAnimation.running) { + if (opened && root.offset <= 0 && !contentContainer.swipeAreaMoving && !drawerAnimation.running) { root.state = ""; offset = 0; focus = false; diff --git a/components/mobileshell/qml/actiondrawer/ContentContainer.qml b/components/mobileshell/qml/actiondrawer/ContentContainer.qml index fabb6d9e..e5c1af74 100644 --- a/components/mobileshell/qml/actiondrawer/ContentContainer.qml +++ b/components/mobileshell/qml/actiondrawer/ContentContainer.qml @@ -24,6 +24,8 @@ Item { readonly property real minimizedQuickSettingsOffset: contentContainerLoader.minimizedQuickSettingsOffset readonly property real maximizedQuickSettingsOffset: contentContainerLoader.maximizedQuickSettingsOffset + readonly property bool swipeAreaMoving: swipeAreaBase.moving || swipeAreaPortrait.moving + Kirigami.Theme.colorSet: Kirigami.Theme.View Kirigami.Theme.inherit: false