Skip to content

Commit

Permalink
Layout adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
kitao committed Sep 25, 2022
1 parent aee6c85 commit be87ffa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 0 additions & 5 deletions wasm/pyxel.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
html,
body {
height: 50%;
}

body {
color-scheme: light dark;
background-color: Canvas;
Expand Down
4 changes: 3 additions & 1 deletion wasm/pyxel.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ function _addElements() {
img.tabindex = -1;
body.appendChild(img);
}
window.scrollTo(0, 1);
setTimeout(() => {
window.scrollTo(0, 1);
}, 1);
}

function _isMobileDevice() {
Expand Down

0 comments on commit be87ffa

Please sign in to comment.