Permalink
Browse files

Default to all directions

  • Loading branch information...
Koen Bok
Koen Bok committed Jan 18, 2016
1 parent 325775b commit 0fb0831c41f21a6208d074a11039e92ef18c8ac8
Showing with 7 additions and 4 deletions.
  1. +7 −4 framer/GestureManager.coffee
@@ -38,8 +38,8 @@ class exports.GestureManager extends EventEmitter
# Add other recognizers if they existed already
existingRecognizers = @_getDependentRecognizersForEventFamily(eventFamily)
if existingRecognizers.length > 0
if existingRecognizers.length
@_manager.add(recognizer).recognizeWith(existingRecognizers)
else
@_manager.add(recognizer)
@@ -87,8 +87,11 @@ class exports.GestureManager extends EventEmitter
_getRecognizer: (eventFamily) ->
if @_manager?.get(eventFamily)
return @_manager.get(eventFamily)
existingRecognizer = @_manager.get(eventFamily)
if existingRecognizer
if eventFamily in [Gestures.Swipe, Gestures.Pan]
return existingRecognizer
switch eventFamily

0 comments on commit 0fb0831

Please sign in to comment.