X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fqml%2FLibrary%2FCustomGestureArea.qml;h=ce76505d74f9de1efdfa5e742be8d11f8b4b9cdf;hb=526c6066678d5eaa6ca355ee7c2073b83eab7e81;hp=eb0d2ce7e4e6308eca0fc5dd772159ac0cacdabe;hpb=5454990e804ec6a741fffe545ec9dbf2bc3c781a;p=marketstoday diff --git a/src/qml/Library/CustomGestureArea.qml b/src/qml/Library/CustomGestureArea.qml index eb0d2ce..ce76505 100644 --- a/src/qml/Library/CustomGestureArea.qml +++ b/src/qml/Library/CustomGestureArea.qml @@ -20,17 +20,17 @@ MouseArea { var deltax = mouse.x - startX; var deltay = mouse.y - startY; - if (Math.abs(deltax) > 40 || Math.abs(deltay) > 40) { - if (deltax > 30 && Math.abs(deltay) < 30) { + if (Math.abs(deltax) > 30 || Math.abs(deltay) > 30) { + if (deltax > 20 && Math.abs(deltay) < 20) { // swipe right swipeRight(); - } else if (deltax < -30 && Math.abs(deltay) < 30) { + } else if (deltax < -20 && Math.abs(deltay) < 20) { // swipe left swipeLeft(); - } else if (Math.abs(deltax) < 30 && deltay > 30) { + } else if (Math.abs(deltax) < 20 && deltay > 20) { // swipe down swipeDown(); - } else if (Math.abs(deltax) < 30 && deltay < 30) { + } else if (Math.abs(deltax) < 20 && deltay < 20) { // swipe up swipeUp(); }