Permalink
Browse files

Bug where it wouldnt scroll to position 0

  • Loading branch information...
koenbok committed Apr 30, 2015
1 parent f755586 commit 238f18ec5056d1ca6d85a23b02b1191bcc9b3e4a
Showing with 2 additions and 4 deletions.
  1. +2 −4 framer/Components/ScrollComponent.coffee
@@ -248,14 +248,12 @@ class exports.ScrollComponent extends Layer
# We never let you scroll to a point that does not make sense (out of bounds). If you still
# would like to do that, access the .content.y directly.
contentPoint = @_calculateContentPoint(point)
@content.draggable.animateStop()
if animate
# _.defer =>
point = {}
point.x = contentPoint.x if contentPoint.x
point.y = contentPoint.y if contentPoint.y
point.x = contentPoint.x if contentPoint.hasOwnProperty("x")
point.y = contentPoint.y if contentPoint.hasOwnProperty("y")
animationOptions.properties = point
@content.animateStop()
@content.animate(animationOptions)

0 comments on commit 238f18e

Please sign in to comment.