@@ -23,15 +23,9 @@ import "../Components/PanelState"
23MouseArea {
23MouseArea {
26− // we either fill the target (for mouse)...
27− anchors.fill: !touchMode ? target : undefined
26+ anchors.fill: target
28 anchors.margins: -borderThickness
27 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
35 hoverEnabled: target && !target.maximized // don't grab the resize under the panel
29 hoverEnabled: target && !target.maximized // don't grab the resize under the panel
37 property var windowStateStorage: WindowStateStorage
31 property var windowStateStorage: WindowStateStorage
@@ -49,7 +43,6 @@ MouseArea {
49 property int screenWidth: 0
43 property int screenWidth: 0
50 property int screenHeight: 0
44 property int screenHeight: 0
51 property int leftMargin: 0
45 property int leftMargin: 0
52− property bool touchMode: false
54 QtObject {
47 QtObject {