Skip to content

Commit 7d96bef

Browse files
author
Javi Jiménez
committed
Merge pull request soyjavi#122 from TNT-RoX/patch-4
Fix Android pinch
2 parents 08093ca + e156118 commit 7d96bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/quo.gestures.pinch.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Quo.Gestures.add
1414
events : ["pinch", "pinching", "pinchIn", "pinchOut"]
1515

1616
handler : do (base = Quo.Gestures) ->
17-
GAP = 20
17+
GAP = (if window.devicePixelRatio >= 2 then 15 else 20)
1818
_target = null
1919
_start = null
2020
_last = null
@@ -30,7 +30,7 @@ Quo.Gestures.add
3030
_last = touches: data, delta: (distance - _start)
3131
_check(true)
3232

33-
end = (target, data) ->
33+
cancel = end = (target, data) ->
3434
if _start and _last
3535
_check(false)
3636
_start = null

0 commit comments

Comments
 (0)