Permalink
Browse files

Snap screen to pixels

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

0 comments on commit 863dc71

Please sign in to comment.