Commit 5dd8bf8e authored by Marco Martin's avatar Marco Martin
Browse files

Manage Drag in a TapHandler which accepts also touch

the Drag attached was set to active in a taphandler which didn't
accept touch, breaking drag and drop on wayland+touch
moving the logic on the other handler makes it work everywhere
parent ed4f5d3e
Pipeline #231369 passed with stage
in 13 minutes and 30 seconds
......@@ -347,14 +347,6 @@ Item {
KWinComponents.Workspace.activeClient = thumb.client;
thumb.windowHeap.activated();
}
}
TapHandler {
acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen
acceptedButtons: Qt.LeftButton | Qt.MiddleButton | Qt.RightButton
onTapped: {
thumb.windowHeap.windowClicked(thumb.client, eventPoint)
}
onPressedChanged: {
if (pressed) {
var saved = Qt.point(thumbSource.x, thumbSource.y);
......@@ -369,6 +361,14 @@ Item {
}
}
TapHandler {
acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen
acceptedButtons: Qt.LeftButton | Qt.MiddleButton | Qt.RightButton
onTapped: {
thumb.windowHeap.windowClicked(thumb.client, eventPoint)
}
}
component DragManager : DragHandler {
target: null
dragThreshold: 0
......
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