@@ -34,6 +34,8 @@ Item {
34 // NB: for testing set to 2, not to clash with unity7 touch overlay controls
34 // NB: for testing set to 2, not to clash with unity7 touch overlay controls
35 minimumTouchPoints: 2
35 minimumTouchPoints: 2
36 maximumTouchPoints: minimumTouchPoints
36 maximumTouchPoints: minimumTouchPoints
37+ recognitionPeriod: 500
38+ releaseRejectPeriod: 500
38 readonly property bool recognizedPress: status == TouchGestureArea.Recognized &&
40 readonly property bool recognizedPress: status == TouchGestureArea.Recognized &&
39 touchPoints.length >= minimumTouchPoints &&
41 touchPoints.length >= minimumTouchPoints &&
@@ -45,6 +47,10 @@ Item {
45 overlayTimer.start();
47 overlayTimer.start();
52+ print("Status changed:", status)
50 // dismiss timer
56 // dismiss timer
@@ -136,7 +142,7 @@ Item {
136 ResizeGrip { // top left
142 ResizeGrip { // top left
137 anchors.horizontalCenter: parent.left
143 anchors.horizontalCenter: parent.left
138 anchors.verticalCenter: parent.top
144 anchors.verticalCenter: parent.top
139− visible: !overlay.anyMaximized
145+ visible: target && !overlay.anyMaximized
140 resizeTarget: priv.resizeArea
146 resizeTarget: priv.resizeArea
@@ -144,7 +150,7 @@ Item {
144 anchors.horizontalCenter: parent.horizontalCenter
150 anchors.horizontalCenter: parent.horizontalCenter
145 anchors.verticalCenter: parent.top
151 anchors.verticalCenter: parent.top
146 rotation: 45
152 rotation: 45
147− visible: !overlay.anyMaximized
153+ visible: target && !overlay.anyMaximized
148 resizeTarget: priv.resizeArea
154 resizeTarget: priv.resizeArea
@@ -152,7 +158,7 @@ Item {
152 anchors.horizontalCenter: parent.right
158 anchors.horizontalCenter: parent.right
153 anchors.verticalCenter: parent.top
159 anchors.verticalCenter: parent.top
154 rotation: 90
160 rotation: 90
155− visible: !overlay.anyMaximized
161+ visible: target && !overlay.anyMaximized
156 resizeTarget: priv.resizeArea
162 resizeTarget: priv.resizeArea
@@ -167,7 +173,7 @@ Item {
167 ResizeGrip { // bottom right
173 ResizeGrip { // bottom right
168 anchors.horizontalCenter: parent.right
174 anchors.horizontalCenter: parent.right
169 anchors.verticalCenter: parent.bottom
175 anchors.verticalCenter: parent.bottom
170− visible: !overlay.anyMaximized
176+ visible: target && !overlay.anyMaximized
171 resizeTarget: priv.resizeArea
177 resizeTarget: priv.resizeArea
@@ -175,7 +181,7 @@ Item {
175 anchors.horizontalCenter: parent.horizontalCenter
181 anchors.horizontalCenter: parent.horizontalCenter
176 anchors.verticalCenter: parent.bottom
182 anchors.verticalCenter: parent.bottom
177 rotation: 45
183 rotation: 45
178− visible: !overlay.anyMaximized
184+ visible: target && !overlay.anyMaximized
179 resizeTarget: priv.resizeArea
185 resizeTarget: priv.resizeArea
@@ -183,7 +189,7 @@ Item {
183 anchors.horizontalCenter: parent.left
189 anchors.horizontalCenter: parent.left
184 anchors.verticalCenter: parent.bottom
190 anchors.verticalCenter: parent.bottom
185 rotation: 90
191 rotation: 90
186− visible: !overlay.anyMaximized
192+ visible: target && !overlay.anyMaximized
187 resizeTarget: priv.resizeArea
193 resizeTarget: priv.resizeArea