mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-28 18:15:37 -05:00
Created a variable to replace a hardcoded value
In ../src/editor/ui/UI.js there's a random hardcoded value of 136 that helps determine the scale of fullscreen mode. Not sure what this number represents but it should be a variable.
This commit is contained in:
parent
fdd930ee50
commit
844765bde6
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ export const DEGTOR = Math.PI / 180;
|
||||||
export const WINDOW_INNER_HEIGHT = window.innerHeight;
|
export const WINDOW_INNER_HEIGHT = window.innerHeight;
|
||||||
export const WINDOW_INNER_WIDTH = window.innerWidth;
|
export const WINDOW_INNER_WIDTH = window.innerWidth;
|
||||||
export const scaleMultiplier = WINDOW_INNER_HEIGHT / 768.0;
|
export const scaleMultiplier = WINDOW_INNER_HEIGHT / 768.0;
|
||||||
|
export const fullscreenScaleMultiplier = 136;
|
||||||
|
|
||||||
export const isiOS = (typeof AndroidInterface == 'undefined');
|
export const isiOS = (typeof AndroidInterface == 'undefined');
|
||||||
export const isAndroid = (typeof AndroidInterface != 'undefined');
|
export const isAndroid = (typeof AndroidInterface != 'undefined');
|
||||||
|
|
Loading…
Reference in a new issue