Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Scale up the preloader on mobile
- Loading branch information
Showing
with
5 additions
and
2 deletions.
-
+5
−2
framer/Extras/Preloader.coffee
|
@@ -54,8 +54,11 @@ class Preloader extends BaseClass |
|
|
@brand.style["background-image"] = "url('framer/images/preloader-icon.png')" |
|
|
|
|
|
do layout = => |
|
|
screen = Framer.Device?.screen |
|
|
scale = screen?.frame.width / screen?.canvasFrame.width |
|
|
if Utils.isMobile() |
|
|
scale = 2 |
|
|
else |
|
|
screen = Framer.Device?.screen |
|
|
scale = screen?.frame.width / screen?.canvasFrame.width |
|
|
@progressIndicator.scale = scale |
|
|
@brand.scale = scale |
|
|
|
|
|