effects/windowview: allow closing windows with touch
This commit is contained in:
parent
e23c3a69d9
commit
13dd31d98a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue