Permalink
Browse files

Fix rotationflip pinch bug by using pinchMove internally instead of p…

…inch (which fires all 3 simultaneously)
  • Loading branch information...
Benjamin den Boer
Benjamin den Boer committed Jan 21, 2016
1 parent 6be8955 commit 21f65047ae216751c6fc3a3b07ab23e17b18d598
Showing with 2 additions and 2 deletions.
  1. +2 −2 framer/LayerPinchable.coffee
@@ -39,7 +39,7 @@ class exports.LayerPinchable extends BaseClass
_attach: ->
@layer.on(Gestures.PinchStart, @_pinchStart)
@layer.on(Gestures.Pinch, @_pinch)
@layer.on(Gestures.PinchMove, @_pinchMove)
@layer.on(Gestures.PinchEnd, @_pinchEnd)
_reset: ->
@@ -53,7 +53,7 @@ class exports.LayerPinchable extends BaseClass
@emit(Events.ScaleStart, event) if @scale
@emit(Events.RotateStart, event) if @rotate
_pinch: (event) =>
_pinchMove: (event) =>
return unless event.pointers.length is 2
return unless @enabled

0 comments on commit 21f6504

Please sign in to comment.