homescreen: Fix app drawer not interactable in empty space

Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/176, where spaces without app delegates are not able to be interacted with. All usages of QQC2.Control should be replaced by MobileShell.BaseItem, which prevents flicks from being stolen from parent flickables.
This commit is contained in:
Devin Lin 2022-02-18 17:54:20 -05:00
parent c16c64a555
commit 70ff2fd0e4

View file

@ -148,7 +148,7 @@ Item {
spacing: 0 spacing: 0
// drawer header // drawer header
Controls.Control { MobileShell.BaseItem {
id: flickableHeader id: flickableHeader
Layout.preferredHeight: root.headerHeight Layout.preferredHeight: root.headerHeight
Layout.fillWidth: true Layout.fillWidth: true
@ -158,7 +158,7 @@ Item {
} }
// drawer body // drawer body
Controls.Control { MobileShell.BaseItem {
id: flickableBody id: flickableBody
Layout.fillHeight: true Layout.fillHeight: true
Layout.fillWidth: true Layout.fillWidth: true