Skip to content
Browse files

fix PageComponent freeze when tapping during an animation

  • Loading branch information
J.P.P Treub
J.P.P Treub committed Mar 14, 2016
1 parent cd8bd60 commit 949e6b3b3efb0d4742cc88ffbf3f27c9fb7718a7
Showing with 2 additions and 3 deletions.
  1. +2 −3 framer/Components/
@@ -172,10 +172,9 @@ class exports.PageComponent extends ScrollComponent
start = @content.draggable._layerStartPoint
end = @content.draggable.layer.point

if start.x != end.x || start.y != end.y
if start.x isnt end.x or start.y isnt end.y
@snapToPage(@closestPage, true, @animationOptions)


# Figure out which direction we are scrolling to and make a sorted list of
# layers on that side, sorted by absolute distance so we can pick the first.

0 comments on commit 949e6b3

Please sign in to comment.