Skip to content

Commit 31710ca

Browse files
committed
refactor
1 parent 04fd866 commit 31710ca

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/index-dist.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@
55
<title>jsPointerLock using dist-file</title>
66
<meta charset="utf-8">
77
<style media="screen">
8-
html {
8+
html,
9+
body {
910
background-color: #CCCCCC;
11+
height: 100%;
12+
width: 100%;
13+
margin: 0;
1014
}
1115

12-
html.locked {
16+
body.locked {
1317
background-color: #CCFFCC;
1418
}
1519
</style>
@@ -21,7 +25,7 @@
2125
<script src="jspointerlock.min.js" charset="utf-8"></script>
2226
<script type="text/javascript">
2327
var pointerLock = new jsPointerLock
24-
.PointerLock(document.documentElement)
28+
.PointerLock(document.body)
2529
.on("change", function (isLocked) {
2630
console.info("PointerLock-LockedState: " + isLocked);
2731
pointerLock.$element.toggleClass("locked");

0 commit comments

Comments
 (0)