From 17708867019c5fcdc68b0f7f4725aede551fc94a Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 27 Aug 2023 15:26:07 +0300 Subject: [WGL/P] Fixed start moving making the canvas blank --- Year 2/Computer Graphics with WebGL/Project/menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Year 2/Computer Graphics with WebGL/Project') 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'); -- cgit v1.3.1-26-gb76a