From 557d331071968520f3dd4ec0ac8be863356844c5 Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Mon, 7 Aug 2017 22:26:04 -0400 Subject: [PATCH] Fix firefox. Use body.clientHeight, not document. --- js/proximity.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/proximity.js b/js/proximity.js index d87bfc3..b160599 100644 --- a/js/proximity.js +++ b/js/proximity.js @@ -515,8 +515,8 @@ function drawPolygon (polygon, points, counter, tweeningFns) { /* MAIN LOOP */ function loop () { - screenWidth = document.documentElement.clientWidth; - screenHeight = document.documentElement.clientHeight; + screenWidth = document.body.clientWidth; + screenHeight = document.body.clientHeight; renderer.resize(screenWidth, screenHeight); polygon.clear(); @@ -613,8 +613,8 @@ function loop () { } function loopStart () { - screenWidth = document.documentElement.clientWidth; - screenHeight = document.documentElement.clientHeight; + screenWidth = document.body.clientWidth; + screenHeight = document.body.clientHeight; // Create the renderer renderer = window.PIXI.autoDetectRenderer(screenWidth, screenHeight, {antialias: true, resolution: resolution});