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

This commit is contained in:
Hide_D committed 2021-12-07 01:54:22 +09:00
1 parent 6f16d9413c
commit 4f3d3b0be8
1 file changed
+7 -1
+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(() => {