Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Mobile
Commits
26aaa808
Commit
26aaa808
authored
May 03, 2022
by
Yari Polla
Browse files
taskswitcher: disable input handlers while in gesture
parent
86348507
Changes
2
Hide whitespace changes
Inline
Side-by-side
components/mobileshell/qml/taskswitcher/Task.qml
View file @
26aaa808
...
...
@@ -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
()
}
}
...
...
components/mobileshell/qml/taskswitcher/TaskList.qml
View file @
26aaa808
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment