diff --git a/hwe/ts/util/auto500px.ts b/hwe/ts/util/auto500px.ts index aebc890d..7441683a 100644 --- a/hwe/ts/util/auto500px.ts +++ b/hwe/ts/util/auto500px.ts @@ -36,7 +36,7 @@ export function auto500px(targetHeight = 700): void { if (innerHeight < selectorHeight) { const maybeNextWidth = deviceWidth / innerHeight * selectorHeight; - if (maybeNextWidth >= 750) { + if (maybeNextWidth >= 700) { viewportMeta.content = 'width=1000, initial-scale=1'; } else { @@ -44,6 +44,12 @@ export function auto500px(targetHeight = 700): void { } return; } + else if(deviceWidth >= 700){ + viewportMeta.content = 'width=1000, initial-scale=1'; + } + else{ + viewportMeta.content = 'width=device-width, initial-scale=1'; + } } htmlReady(() => {