fix: auto500px 가로모드 미설정 버그 수정
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user