From 247da06882628b556230a11236457033dd23ac4f Mon Sep 17 00:00:00 2001 From: Carter David Henning Date: Fri, 30 Jul 2021 20:40:47 -0400 Subject: [PATCH 1/3] Fix incorrect fullscreen check --- plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.js b/plugins.js index 69b2ca3..51a84f1 100644 --- a/plugins.js +++ b/plugins.js @@ -4695,7 +4695,7 @@ GA.plugins = function(ga) { //to `fullscreen.scale`. If not, and the canvas hasn't already //been scaled, the scale reverts back to 1. ga.scaleFullscreen = function() { - if(document.fullscreenEnabled) { + if(document.fullscreenElement != null) { ga.scale = ga.fullscreenScale; ga.pointer.scale = ga.fullscreenScale; } else { From e103338185cae284cd5b22c5393bf9e64af05b12 Mon Sep 17 00:00:00 2001 From: Carter David Henning Date: Fri, 30 Jul 2021 20:55:03 -0400 Subject: [PATCH 2/3] Fix typo in sineCubed function --- plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.js b/plugins.js index 51a84f1..35907ff 100644 --- a/plugins.js +++ b/plugins.js @@ -1156,7 +1156,7 @@ GA.plugins = function(ga) { //Sine sine: function(x) {return Math.sin(x * Math.PI / 2);}, sineSquared: function(x) {return Math.pow(Math.sin(x * Math.PI / 2), 2);}, - sineCubed: function(x) {return Math.pow(Math.sin(x * Math.PI / 2), 2);}, + sineCubed: function(x) {return Math.pow(Math.sin(x * Math.PI / 2), 3);}, inverseSine: function(x) {return 1 - Math.sin((1 - x) * Math.PI / 2);}, inverseSineSquared: function(x) {return 1 - Math.pow(Math.sin((1 - x) * Math.PI / 2), 2);}, inverseSineCubed: function(x) {return 1 - Math.pow(Math.sin((1 - x) * Math.PI / 2), 3);}, From 5cefc646398fdaaf08203b45c98724837601b281 Mon Sep 17 00:00:00 2001 From: Carter David Henning Date: Fri, 30 Jul 2021 21:09:27 -0400 Subject: [PATCH 3/3] Revert "Fix incorrect fullscreen check" This reverts commit 247da06882628b556230a11236457033dd23ac4f. --- plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.js b/plugins.js index 35907ff..d165dd2 100644 --- a/plugins.js +++ b/plugins.js @@ -4695,7 +4695,7 @@ GA.plugins = function(ga) { //to `fullscreen.scale`. If not, and the canvas hasn't already //been scaled, the scale reverts back to 1. ga.scaleFullscreen = function() { - if(document.fullscreenElement != null) { + if(document.fullscreenEnabled) { ga.scale = ga.fullscreenScale; ga.pointer.scale = ga.fullscreenScale; } else {