File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -75,9 +75,7 @@ do ($$ = Quo) ->
75
75
fingers = touches .length
76
76
if fingers == GESTURE .fingers
77
77
CURRENT_TOUCH = _fingersPosition (touches, fingers)
78
- is_swipe = _isSwipe (event)
79
- if is_swipe then GESTURE .prevSwipe = true
80
- _trigger " swiping" if (is_swipe or GESTURE .prevSwipe is true )
78
+ _trigger " swiping" if _isSwipe (event)
81
79
if fingers == 2
82
80
_captureRotation ()
83
81
_capturePinch ()
@@ -92,6 +90,7 @@ do ($$ = Quo) ->
92
90
move_horizontal = Math .abs (FIRST_TOUCH[0 ].x - CURRENT_TOUCH[0 ].x ) > 30
93
91
move_vertical = Math .abs (FIRST_TOUCH[0 ].y - CURRENT_TOUCH[0 ].y ) > 30
94
92
it_is = GESTURE .el and (move_horizontal or move_vertical)
93
+ GESTURE .prevSwipe = it_is
95
94
it_is
96
95
97
96
_onTouchEnd = (event ) ->
You can’t perform that action at this time.
0 commit comments