Skip to content

Commit e2a486c

Browse files
author
Javi Jiménez
committed
Merge pull request soyjavi#128 from TNT-RoX/patch-9
Fix for Android no move during swipe
2 parents fa48b78 + 69b9fc9 commit e2a486c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

source/quo.gestures.swipe.coffee

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ Quo.Gestures.add
3939
_last = null
4040

4141
cancel = end = (target, data) ->
42+
unless _last?
43+
if data.length >= 1
44+
delta =
45+
x: data[0].x - _start.x
46+
y: data[0].y - _start.y
47+
48+
_last =
49+
x: data[0].x
50+
y: data[0].y
51+
delta: delta
4252
if _last
4353
_check(false)
4454
_last = null

0 commit comments

Comments
 (0)