Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Bug where it wouldnt scroll to position 0
- Loading branch information
Showing
with
2 additions
and
4 deletions.
-
+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) |
|
|