Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamindenboer committed Nov 16, 2017
1 parent fa419f9 commit 3a276a2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/input.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -147,25 +147,25 @@ class exports.InputLayer extends TextLayer
_checkDevicePixelRatio: ->
ratio = (Screen.width / Framer.Device.screen.width)
if Utils.isDesktop()
# 3X
# @3x
if ratio < 0.5 and ratio > 0.25
dpr = 1 - ratio
# 4X
# @4x
else if ratio is 0.25
dpr = 1 - (ratio * 2)
# 1X, 2X
# @1x, @2x
else
dpr = Utils.devicePixelRatio()
if Framer.Device.deviceType is "fullscreen"
dpr = 2
else
# 3X
# @3x
if ratio < 0.5 and ratio > 0.25
dpr = 1 - ratio
# 4X
# @4x
else if ratio is 0.25
dpr = 1 - (ratio * 2)
# 1X, 2X
# @1x, @2x
else if ratio is 0.5
dpr = 1

Expand Down

0 comments on commit 3a276a2

Please sign in to comment.