on xenial help sign in
simplify, don't need the full side stage gesture component
commit9e8f0306f3e1ebb17a45b4e436e0855b709a1690 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateFri 1 Apr 2016, 16:44 (11 years ago) parent3b6f569
1 file changed+10−6
qml/Stages/WindowControlsOverlay.qml+10−6
qml/Stages/WindowControlsOverlay.qml+10−6
@@ -28,16 +28,20 @@ Item {
2828
2929 signal activated
3030
31− TabletSideStageTouchGesture {
31+ TouchGestureArea {
3232 id: gestureArea
3333 anchors.fill: parent
3434
35− // NB: for testing, not to clash with unity7 touch overlay controls
36− // minimumTouchPoints: 2
37− // maximumTouchPoints: 2
35+ // NB: for testing set to 2, not to clash with unity7 touch overlay controls
36+ minimumTouchPoints: 3
37+ maximumTouchPoints: minimumTouchPoints
3838
39− onRecognisedPressChanged: {
40− if (recognisedPress && target && !target.fullscreen) {
39+ readonly property bool recognizedPress: status == TouchGestureArea.Recognized &&
40+ touchPoints.length >= minimumTouchPoints &&
41+ touchPoints.length <= maximumTouchPoints
42+
43+ onRecognizedPressChanged: {
44+ if (recognizedPress && target && !target.fullscreen) {
4145 overlayTimer.running = true;
4246 root.activated();
4347 }