diff --git a/pal/screen-adapter/web/screen-adapter.ts b/pal/screen-adapter/web/screen-adapter.ts index 0042c8296bb..6249062f01e 100644 --- a/pal/screen-adapter/web/screen-adapter.ts +++ b/pal/screen-adapter/web/screen-adapter.ts @@ -266,7 +266,7 @@ class ScreenAdapter extends EventTarget { return new Size(width, height); case WindowType.Unknown: default: - return new Size(0, 0); + return new Size(1, 1); } } private get _windowType (): WindowType {