@@ -36,7 +36,6 @@ Item {
3636 // NB: for testing set to 2, not to clash with unity7 touch overlay controls
3737 minimumTouchPoints: 3
3838 maximumTouchPoints: minimumTouchPoints
39− releaseRejectPeriod: 500
4039
4140 readonly property bool recognizedPress: status == TouchGestureArea.Recognized &&
4241 touchPoints.length >= minimumTouchPoints &&
@@ -105,7 +104,7 @@ Item {
105104 id: overlay
106105 objectName: "windowControlsOverlay"
107106 anchors.fill: parent
108− enabled: target && overlayTimer.running
107+ enabled: overlayTimer.running
109108 visible: opacity > 0
110109 opacity: enabled ? 0.95 : 0
111110
@@ -143,8 +142,13 @@ Item {
143142 visible: overlay.visible
144143 enabled: visible
145144 onPressed: {
145+ if (gestureArea.recognizedPress || gestureArea.recognizedDrag) {
146+ mouse.accepted = false;
147+ return;
148+ }
149+
146150 overlayTimer.stop();
147− mouse.accepted = false;
151+ mouse.accepted = root.contains(Qt.point(mouse.x, mouse.y));
148152 }
149153 propagateComposedEvents: true
150154 }