Permalink
Browse files

add default values to contentPoint of scrollComponent

  • Loading branch information...
J.P.P Treub
J.P.P Treub committed Mar 15, 2016
1 parent b961fbf commit 75c0dc231a2ace1e97193ff64f77f91a6b41915d
Showing with 1 addition and 0 deletions.
  1. +1 −0 framer/Components/ScrollComponent.coffee
@@ -173,6 +173,7 @@ class exports.ScrollComponent extends Layer
@scrollHorizontal = @scrollVertical = value
_calculateContentPoint: (scrollPoint) ->
scrollPoint = _.defaults(scrollPoint, {x:0, y:0})
scrollPoint.x -= @contentInset.left
scrollPoint.y -= @contentInset.top
point = @_pointInConstraints(scrollPoint)

0 comments on commit 75c0dc2

Please sign in to comment.