Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Still show hints while animating
  • Loading branch information
koenbok committed Jul 25, 2016
1 parent c997102 commit c9a02f5
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions framer/Layer.coffee
Expand Up @@ -1227,15 +1227,11 @@ class exports.Layer extends BaseClass
# parent layers clip, we need to intersect the rectangle with it.
frame = @canvasFrame

return unless frame

for parent in @ancestors(context=true)
if parent.clip
parentFrame = parent.canvasFrame
if parentFrame
frame = Utils.frameIntersection(frame, parent.canvasFrame)

return unless frame
frame = Utils.frameIntersection(frame, parent.canvasFrame)
if not frame
return

# Show the actual hint
@showHint(frame)
Expand All @@ -1257,10 +1253,10 @@ class exports.Layer extends BaseClass
shouldShowHint: (targetLayer) ->

# Don't show any hints while we are animating
return false if @isAnimating
# return false if @isAnimating

for parent in @ancestors()
return false if parent.isAnimating
# for parent in @ancestors()
# return false if parent.isAnimating

# Don't show hints if we cannot be dragged
if @_draggable
Expand Down

0 comments on commit c9a02f5

Please sign in to comment.