Fix scrollbar bug on certain viewport sizes
This commit is contained in:
parent
57aa92bf83
commit
b8b0e5dfb4
@ -7,6 +7,18 @@ html {
|
|||||||
background-color: #1e1e1e;
|
background-color: #1e1e1e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html, body, canvas {
|
||||||
|
overflow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
canvas {
|
||||||
|
position: fixed !important;
|
||||||
|
left: 0 !important;
|
||||||
|
right: 0 !important;
|
||||||
|
bottom: 0 !important;
|
||||||
|
top: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
html, button {
|
html, button {
|
||||||
font-family: "Arial", sans-serif;
|
font-family: "Arial", sans-serif;
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
|
@ -702,8 +702,8 @@ function drawPolygon (polygon, points, counter, tweeningFns) {
|
|||||||
/* MAIN LOOP */
|
/* MAIN LOOP */
|
||||||
|
|
||||||
function loop () {
|
function loop () {
|
||||||
screenWidth = document.body.clientWidth;
|
screenWidth = window.innerWidth;
|
||||||
screenHeight = document.body.clientHeight;
|
screenHeight = window.innerHeight;
|
||||||
renderer.resize(screenWidth, screenHeight);
|
renderer.resize(screenWidth, screenHeight);
|
||||||
|
|
||||||
polygon.clear();
|
polygon.clear();
|
||||||
@ -819,8 +819,8 @@ function loop () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loopStart () {
|
function loopStart () {
|
||||||
screenWidth = document.body.clientWidth;
|
screenWidth = window.innerWidth;
|
||||||
screenHeight = document.body.clientHeight;
|
screenHeight = window.innerHeight;
|
||||||
// Create the renderer
|
// Create the renderer
|
||||||
renderer = window.PIXI.autoDetectRenderer(screenWidth, screenHeight, {antialias: true, resolution: resolution});
|
renderer = window.PIXI.autoDetectRenderer(screenWidth, screenHeight, {antialias: true, resolution: resolution});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user