Skip to content

Commit be3368d

Browse files
committed
Fixed a bit of unintentional scrolling in Chrome.
1 parent 90dfee9 commit be3368d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

static/index.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
body {
1010

1111
background-color: #000000;
12-
margin: 0px;
12+
margin: 0;
13+
padding: 0;
1314
overflow: hidden;
1415

1516
}
@@ -180,11 +181,9 @@
180181
return;
181182
}
182183

183-
var effect = document.createElement( 'div' );
184-
document.body.appendChild( effect );
185-
186184
canvas = document.createElement( 'canvas' );
187-
effect.appendChild( canvas );
185+
canvas.style.display = 'block';
186+
document.body.appendChild( canvas );
188187

189188
//
190189

0 commit comments

Comments
 (0)