diff --git a/css/Duration Mode.css b/css/Duration Mode.css index 380b1f0..b66cd87 100644 --- a/css/Duration Mode.css +++ b/css/Duration Mode.css @@ -4,6 +4,7 @@ } #myCanvas { + object-fit: cover; display: none; } @@ -97,6 +98,7 @@ } #myCanvas { + object-fit: cover; z-index: -1; } diff --git a/css/Infinite Drive.css b/css/Infinite Drive.css index 264e34e..303fdaf 100644 --- a/css/Infinite Drive.css +++ b/css/Infinite Drive.css @@ -4,6 +4,7 @@ } #myCanvas { + object-fit: cover; display: none; } @@ -96,6 +97,7 @@ } #myCanvas { + object-fit: cover; z-index: -1; } diff --git a/css/Racing Mode.css b/css/Racing Mode.css index e17fa67..a6690f6 100644 --- a/css/Racing Mode.css +++ b/css/Racing Mode.css @@ -4,6 +4,7 @@ } #myCanvas { + object-fit: cover; display: none; } @@ -96,6 +97,7 @@ } #myCanvas { + object-fit: cover; z-index: -1; } diff --git a/js/Casual Mode.js b/js/Casual Mode.js index 62a5790..061992a 100644 --- a/js/Casual Mode.js +++ b/js/Casual Mode.js @@ -907,6 +907,7 @@ var interval = 0; addEventListener("keydown", (event) => { + event.preventDefault(); if (event.keyCode !== 32) { key = event.keyCode; } diff --git a/js/Duration Mode.js b/js/Duration Mode.js index 05b8b9a..04aca99 100644 --- a/js/Duration Mode.js +++ b/js/Duration Mode.js @@ -11,10 +11,8 @@ Till Learning Resize orr For Static Purpose Both Are 200 And Dynamicity Will Be Applied After Learning Event Listner Of Body And Windows */ - - -height = canvas.height = innerHeight - 5; -width = canvas.width = innerWidth - 0; +height = canvas.height = Math.max(750, innerHeight) * 0.99; +width = canvas.width = Math.max(1400, innerWidth); var start, end, dist, track_len, med = [], common; @@ -1083,6 +1081,7 @@ var interval = 0; addEventListener("keydown", (event) => { + event.preventDefault(); if (event.keyCode !== 32) { key = event.keyCode; } diff --git a/js/Infinite Drive.js b/js/Infinite Drive.js index 42b6d68..94e9446 100644 --- a/js/Infinite Drive.js +++ b/js/Infinite Drive.js @@ -12,10 +12,8 @@ Till Learning Resize orr For Static Purpose Both Are 200 And Dynamicity Will Be Applied After Learning Event Listner Of Body And Windows */ - - -height = canvas.height = innerHeight - 5; -width = canvas.width = innerWidth - 0; +height = canvas.height = Math.max(750, innerHeight) * 0.99; +width = canvas.width = Math.max(1400, innerWidth); var start, end, dist, track_len, med = [], common; @@ -918,6 +916,7 @@ var interval = 0; addEventListener("keydown", (event) => { + event.preventDefault(); if (event.keyCode !== 32) { key = event.keyCode; } diff --git a/js/Racing Mode.js b/js/Racing Mode.js index 7c534ae..31888e0 100644 --- a/js/Racing Mode.js +++ b/js/Racing Mode.js @@ -12,10 +12,8 @@ Till Learning Resize orr For Static Purpose Both Are 200 And Dynamicity Will Be Applied After Learning Event Listner Of Body And Windows */ - - -height = canvas.height = innerHeight - 5; -width = canvas.width = innerWidth - 0; +height = canvas.height = Math.max(750, innerHeight) * 0.99; +width = canvas.width = Math.max(1400, innerWidth); var start, end, dist, track_len, med = [], common; @@ -1178,6 +1176,7 @@ var interval = 0; addEventListener("keydown", (event) => { + event.preventDefault(); if (event.keyCode !== 32) { key = event.keyCode; }