Mouse hover sets answer cursor via mouseenter + _renderCursor, matching pokeazure approach
This commit is contained in:
1 parent
eff440d1f2
commit
09e38bb465
2 files changed
+5
-1
No files matched your search
@@ -1140,6 +1140,10 @@ class Game {
|
||||
btn.setAttribute('data-letter', slotIdx + 1);
|
||||
btn.textContent=rewriteLetterRefs(q.options[origIdx]);
|
||||
btn.addEventListener('click',()=>this.pick(slotIdx, correctShuffledIdx, q, container));
|
||||
btn.addEventListener('mouseenter', () => {
|
||||
this.state.cursor = slotIdx;
|
||||
this._renderCursor();
|
||||
});
|
||||
container.appendChild(btn);
|
||||
});
|
||||
this._renderCursor();
|
||||
|
||||
Reference in new issue
Block a user