mobileshell/taskswitcher: Remove unneeded gesture area

This commit is contained in:
Devin Lin 2021-12-25 13:33:40 -05:00
parent 57175abcf4
commit 54f10f9f13

View file

@ -262,23 +262,4 @@ Item {
}
}
}
// top panel swipe down gesture
MouseArea {
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
height: MobileShell.TopPanelControls.panelHeight
property int oldMouseY: 0
onPositionChanged: {
MobileShell.TopPanelControls.requestRelativeScroll(mouse.y - oldMouseY);
oldMouseY = mouse.y;
}
onPressed: {
oldMouseY = mouse.y;
MobileShell.TopPanelControls.startSwipe();
}
onReleased: MobileShell.TopPanelControls.endSwipe();
}
}