on xenial help sign in
open the appdrawer on 4-finger tap, not just press
2fbf338Lukáš Tinkl
qml/Shell.qml+18−2
@@ -326,9 +326,25 @@ StyledItem {
326 minimumTouchPoints: 4
326 minimumTouchPoints: 4
327 maximumTouchPoints: minimumTouchPoints
327 maximumTouchPoints: minimumTouchPoints
328
328
329+ readonly property bool recognisedPress: status == TouchGestureArea.Recognized &&
330+ touchPoints.length >= minimumTouchPoints &&
331+ touchPoints.length <= maximumTouchPoints
332+ property bool wasPressed: false
333+
334+ onRecognisedPressChanged: {
335+ if (recognisedPress) {
336+ wasPressed = true;
337+ }
338+ }
339+
329 onStatusChanged: {
340 onStatusChanged: {
330− if (status == TouchGestureArea.Recognized) {
341+ if (status !== TouchGestureArea.Recognized) {
342+ if (status === TouchGestureArea.WaitingForTouch) {
343+ if (wasPressed) {
331− launcher.openDrawer(true);
344+ launcher.openDrawer(true);
345+ }
346+ }
347+ wasPressed = false;
332 }
348 }
333 }
349 }
334 }
350 }