From 26aaa808b024abf1b42781c2a1707d9e6a59513c Mon Sep 17 00:00:00 2001 From: Yari Polla Date: Tue, 3 May 2022 01:38:32 +0200 Subject: [PATCH] taskswitcher: disable input handlers while in gesture --- components/mobileshell/qml/taskswitcher/Task.qml | 4 ++++ components/mobileshell/qml/taskswitcher/TaskList.qml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/components/mobileshell/qml/taskswitcher/Task.qml b/components/mobileshell/qml/taskswitcher/Task.qml index 68c86e92..366e6f92 100644 --- a/components/mobileshell/qml/taskswitcher/Task.qml +++ b/components/mobileshell/qml/taskswitcher/Task.qml @@ -65,6 +65,7 @@ Item { id: control width: parent.width height: parent.height + enabled: !taskSwitcher.taskSwitcherState.currentlyBeingOpened // set cursor shape here, since taphandler seems to not be able to do it cursorShape: Qt.PointingHandCursor @@ -81,6 +82,8 @@ Item { id: dragHandler target: parent + enabled: !taskSwitcher.taskSwitcherState.currentlyBeingOpened + yAxis.enabled: true xAxis.enabled: false yAxis.maximum: 0 @@ -238,6 +241,7 @@ Item { TapHandler { id: tapHandler + enabled: !taskSwitcher.taskSwitcherState.currentlyBeingOpened onTapped: delegate.activateApp() } } diff --git a/components/mobileshell/qml/taskswitcher/TaskList.qml b/components/mobileshell/qml/taskswitcher/TaskList.qml index 9d36aa84..44baa94f 100644 --- a/components/mobileshell/qml/taskswitcher/TaskList.qml +++ b/components/mobileshell/qml/taskswitcher/TaskList.qml @@ -28,6 +28,8 @@ Item { // taphandler activates even if delegate touched TapHandler { + enabled: !taskSwitcherState.currentlyBeingOpened + onTapped: { // if tapped on the background, then hide if (root.childAt(eventPoint.position.x, eventPoint.position.y) === null) {