effects/windowview: allow closing windows with touch

This commit is contained in:
Xaver Hugl 2022-05-11 17:04:36 +02:00
parent e23c3a69d9
commit 13dd31d98a

View file

@ -335,7 +335,7 @@ FocusScope {
component DragManager : DragHandler {
id: dragHandler
enabled: heap.dragEnabled
enabled: heap.dragEnabled || heap.supportsCloseWindows
target: null
readonly property double targetScale: {
@ -365,6 +365,7 @@ FocusScope {
id: dragHandler
readonly property double targetOpacity: 1
acceptedDevices: PointerDevice.Mouse | PointerDevice.TouchPad | PointerDevice.Stylus
enabled: heap.dragEnabled
}
DragManager {
id: touchDragHandler