diff options
[WGL/P] Fixed start moving making the canvas blank
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | Year 2/Computer Graphics with WebGL/Project/menu.js | 2 |
diff --git a/Year 2/Computer Graphics with WebGL/Project/menu.js b/Year 2/Computer Graphics with WebGL/Project/menu.js index 1a9555f..9b61ef7 100644 --- a/Year 2/Computer Graphics with WebGL/Project/menu.js +++ b/Year 2/Computer Graphics with WebGL/Project/menu.js @@ -20,7 +20,7 @@ const onlyHorizontalCB = document.getElementById('only-horizontal'); function horChange() { onlyHorizontal = this.checked; } -horChange.call(horChange); +horChange.call(onlyHorizontalCB); onlyHorizontalCB.addEventListener('change', horChange); const onlyVerticalCB = document.getElementById('only-vertical'); |
