Skip to content

Commit fa48b78

Browse files
author
@soyjavi
committed
Merge branch 'master' of https://github.com/soyjavi/QuoJS
* 'master' of https://github.com/soyjavi/QuoJS: Refactor GAP for better scalling
2 parents 7cbdad3 + 759cc9f commit fa48b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/quo.gestures.swipe.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Quo.Gestures.add
1717
"swiping", "swipingHorizontal", "swipingVertical"]
1818

1919
handler : do (base = Quo.Gestures) ->
20-
GAP = (if window.devicePixelRatio >= 2 then 15 else 20)
20+
GAP = Math.round(20 / window.devicePixelRatio)
2121
_target = null
2222
_start = null
2323
_start_axis = null

0 commit comments

Comments
 (0)