Commit ba2d6bf6 authored by Yari Polla's avatar Yari Polla
Browse files

homescreen: deactivate home screen flick container when an applet is in edit mode

parent f0e1d4e4
Pipeline #166090 passed with stages
in 1 minute and 8 seconds
......@@ -25,10 +25,10 @@ Item {
id: root
property bool interactive: true
property var homeScreenState: HomeScreenState {
interactive: root.interactive
totalPagesWidth: pages.contentWidth
appDrawerFlickable: appDrawer.flickable
......@@ -56,8 +56,8 @@ Item {
homeScreenState: root.homeScreenState
// disable flick tracking when necessary
interactive: root.interactive && homeScreenState.currentView !== HomeScreenState.AppDrawerView
interactive: root.interactive && homeScreenState.currentView !== HomeScreenState.AppDrawerView && !contents.inAppletEditMode
// item is effectively anchored to root, while allowing flickContainer
// to keep track of flicks
Item {
......
......@@ -50,6 +50,8 @@ DragDrop.DropArea {
favoriteStrip: dropArea.favoriteStrip
}
property bool inAppletEditMode: false
Connections {
target: plasmoid
function onEditModeChanged() {
......@@ -200,6 +202,10 @@ DragDrop.DropArea {
appletContainerComponent: MobileAppletContainer {
homeScreenState: dropArea.homeScreenState
launcherDragManager: dropArea.launcherDragManager
onEditModeChanged: {
inAppletEditMode = editMode;
}
}
placeHolder: ContainmentLayoutManager.PlaceHolder {}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment