@@ -22,16 +22,23 @@ import "../Components/PanelState"
23MouseArea {
23MouseArea {
26+ // we either fill the target (for mouse)...
25− anchors.fill: target
27+ anchors.fill: !touchMode ? target : undefined
26 anchors.margins: -borderThickness
28 anchors.margins: -borderThickness
30+ // ... or put it on top for touch controls
31+ anchors.centerIn: touchMode ? target : undefined
32+ width: touchMode ? target.width - borderThickness/2 : undefined
33+ height: touchMode ? target.height - borderThickness/2 : undefined
28 hoverEnabled: target && !target.maximized // don't grab the resize under the panel
35 hoverEnabled: target && !target.maximized // don't grab the resize under the panel
30 property var windowStateStorage: WindowStateStorage
37 property var windowStateStorage: WindowStateStorage
31 readonly property alias dragging: d.dragging
38 readonly property alias dragging: d.dragging
33 // The target item managed by this. Must be a parent or a sibling
40 // The target item managed by this. Must be a parent or a sibling
34− // The area will anchor to it and manage move and resize events
41+ // The area will anchor to it and manage resize events
35 property Item target: null
42 property Item target: null
36 property string windowId: ""
43 property string windowId: ""
37 property int borderThickness: 0
44 property int borderThickness: 0
@@ -42,6 +49,7 @@ MouseArea {
42 property int screenWidth: 0
49 property int screenWidth: 0
43 property int screenHeight: 0
50 property int screenHeight: 0
44 property int leftMargin: 0
51 property int leftMargin: 0
52+ property bool touchMode: false
46 QtObject {
54 QtObject {