From b78557dbf2f41456a44652be80a25119186d1da1 Mon Sep 17 00:00:00 2001 From: Justin Oros Date: Wed, 20 May 2026 11:43:00 -0700 Subject: [PATCH] Sync cursor highlight to hovered answer button on mouseover --- game.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/game.js b/game.js index 125a97e..5455ac7 100644 --- a/game.js +++ b/game.js @@ -1147,10 +1147,19 @@ class Game { } else { btn.addEventListener('click',()=>this.pick(slotIdx, correctShuffledIdx, q, container)); } + btn.addEventListener('mouseenter', () => { + this.state.cursor = slotIdx; + this._renderCursor(); + }); container.appendChild(btn); }); if (isMulti) { + confirmBtn.addEventListener('mouseenter', () => { + if (confirmBtn.classList.contains('confirm-inactive')) return; + this.state.cursor = 4; + this._renderCursor(); + }); container.appendChild(confirmBtn); container._confirmBtn = confirmBtn; }