Skip to content

Commit 66e9faa

Browse files
Add files via upload
1 parent faf481e commit 66e9faa

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

main.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,13 @@ class Handler {
408408

409409
setFullScreenCanvas() {
410410
for(const canvas of this.canvases) {
411-
canvas.width = window.innerWidth;
412-
canvas.height = window.innerHeight;
411+
if(isMobile()) {
412+
canvas.width = screen.width;
413+
canvas.height = screen.height;
414+
} else {
415+
canvas.width = window.innerWidth;
416+
canvas.height = window.innerHeight;
417+
}
413418
}
414419
}
415420

0 commit comments

Comments
 (0)