summaryrefslogtreecommitdiffstats
path: root/stroke-list/Button.qml
diff options
context:
space:
mode:
Diffstat (limited to 'stroke-list/Button.qml')
-rw-r--r--stroke-list/Button.qml7
1 files changed, 3 insertions, 4 deletions
diff --git a/stroke-list/Button.qml b/stroke-list/Button.qml
index b53d54a..a3fdfe1 100644
--- a/stroke-list/Button.qml
+++ b/stroke-list/Button.qml
@@ -104,11 +104,9 @@ Rectangle {
property bool handled: false
function isHorizontalSwipe(angle) {
- if (angle > 160 && angle < 200)
+ if (angle > 150 && angle < 210)
return true;
- if (angle > 0 && angle < 20)
- return true;
- if (angle > 340 && angle < 360)
+ if (angle > 330 || angle < 30)
return true;
return false;
}
@@ -139,6 +137,7 @@ Rectangle {
}
Swipe {
+ when: gesture.speed > 25
onStarted: button.handled = true
onFinished: {
if (isHorizontalSwipe(gesture.swipeAngle)) {