Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Always cap device scale at 1 if zoom to fit
- Loading branch information
Showing
with
3 additions
and
0 deletions.
-
+3
−0
framer/Components/DeviceComponent.coffee
|
@@ -355,6 +355,9 @@ class exports.DeviceComponent extends BaseClass |
|
|
(window.innerHeight - ((@padding + paddingOffset) * 2)) / height |
|
|
]) |
|
|
|
|
|
# Never scale the phone beyond 100% |
|
|
phoneScale = 1 if phoneScale > 1 |
|
|
|
|
|
return phoneScale |
|
|
|
|
|
########################################################################### |
|
|