actiondrawer: fix swipearea references

This commit is contained in:
Micah Stanley 2025-03-22 12:56:32 +00:00
parent dc84693bfb
commit d9495bc714
2 changed files with 3 additions and 5 deletions

View file

@ -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;

View file

@ -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