Commit 03168cea authored by Jimmy HUGUET's avatar Jimmy HUGUET

Review long swipe distances to make it more comfortable to use (thanks to @247...

Review long swipe distances to make it more comfortable to use (thanks to @247 for his help on this)
parent a0b7d880
......@@ -258,13 +258,13 @@ Item {
key.swipeValue = -1
} else if (Math.abs(distX) > 3 * Math.abs(distY)){
if (distX < 0) {
if (Math.abs(distX) > key.height * 3.5) { // Special case of really long swipe
if (Math.abs(distX) > key.height * 1.6) { // Special case of really long swipe
key.swipeValue = -20 // SpecialValue : backSpace
} else {
key.swipeValue = 3
}
} else {
if (Math.abs(distX) > key.height * 3.5) { // Special case of really long swipe
if (Math.abs(distX) > key.height * 1.9) { // Special case of really long swipe
key.swipeValue = -10 // SpecialValue : space
} else {
key.swipeValue = 4
......
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