Skip to content

Commit

Permalink
Snap screen to pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh committed Nov 15, 2017
1 parent f5a45ee commit 863dc71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framer/Components/DeviceComponent.coffee
Expand Up @@ -194,9 +194,9 @@ class exports.DeviceComponent extends BaseClass
@screenBackground.width = @screen.width + 40
@screenBackground.height = @screen.height + 40
@setHand(@selectedHand) if @selectedHand and @_orientation is 0
centerLayer(@screenBackground)
centerLayer(@screen)
centerLayer(@screenMask)
centerLayer(@screenBackground, true)
centerLayer(@screen, true)
centerLayer(@screenMask, true)

pixelRatio = @_device.devicePixelRatio ? 1
screenSizeChanged = screenSizeChanged or @_context.devicePixelRatio isnt pixelRatio
Expand Down

0 comments on commit 863dc71

Please sign in to comment.