Permalink
Browse files

Resetting screenbackground after animation

  • Loading branch information...
nvh committed Nov 15, 2017
1 parent d3ed9ec commit a2064258a67611b7f0b566a7a8822f610d0b6a57
Showing with 2 additions and 0 deletions.
  1. +2 −0 framer/Components/DeviceComponent.coffee
@@ -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
@@ -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

0 comments on commit a206425

Please sign in to comment.