fix: auto500px 가로모드 미설정 버그 수정

This commit is contained in:
2021-12-07 01:54:22 +09:00
parent 5424869d8e
commit 40b52dd517
+7 -1
View File
@@ -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(() => {