Commit 97be392a authored by Jimmy HUGUET's avatar Jimmy HUGUET

Reduce minimum distance to detect a swipe instead of a tap

parent 5fb86689
......@@ -241,7 +241,7 @@ Item {
var distX = point.x - point.startX
var distY = point.y - point.startY
if (Math.abs(distX) < key.height && Math.abs(distY) < key.height) {
if (Math.abs(distX) < key.height * 0.5 && Math.abs(distY) < key.height * 0.5) {
key.swipeValue = -1
} else if (Math.abs(distX) > 3 * Math.abs(distY)){
if (distX < 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment