From 34fbf05e2fc406dffdef25a1cf51418c41af2206 Mon Sep 17 00:00:00 2001 From: Zutatensuppe Date: Wed, 14 Apr 2021 19:39:26 +0200 Subject: [PATCH] hide cursor only when puzzle is loaded already --- game/game.js | 1 + game/style.css | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/game/game.js b/game/game.js index 18c0088..5eb0da7 100644 --- a/game/game.js +++ b/game/game.js @@ -374,6 +374,7 @@ async function main() { fireworks.init(canvas) const ctx = canvas.getContext('2d') + canvas.classList.add('loaded') // initialize some view data // this global data will change according to input events diff --git a/game/style.css b/game/style.css index 436480e..3eb7d4c 100644 --- a/game/style.css +++ b/game/style.css @@ -116,7 +116,7 @@ a:hover { color: var(--link-hover-color); } cursor: pointer; } -canvas { +canvas.loaded { cursor: none; }