Skip to content

Commit

Permalink
Resetting screenbackground after animation
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh committed Nov 15, 2017
1 parent d3ed9ec commit a206425
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framer/Components/DeviceComponent.coffee
Expand Up @@ -604,6 +604,7 @@ class exports.DeviceComponent extends BaseClass

if animate
previousBackgroundColor = @background.backgroundColor
previousScreenBackgroundVisiblity = @screenBackground.visible
if @hideBezel
@screenBackground.visible = false
@background.backgroundColor = @screen.backgroundColor
Expand All @@ -619,6 +620,7 @@ class exports.DeviceComponent extends BaseClass
animation.on Events.AnimationStop, =>
@disableSizeUpdates = false
@background.backgroundColor = previousBackgroundColor
@screenBackground.visible = previousScreenBackgroundVisiblity

else
@hands.props = handsProperties
Expand Down

0 comments on commit a206425

Please sign in to comment.