Browse Source

fix bug with keyboard vs mouse interaction

main
Stephanie Gredell 4 months ago
parent
commit
1c999dfab7
  1. 2
      src/ui/render.js

2
src/ui/render.js

@ -239,6 +239,8 @@ export async function renderBattle(root) { @@ -239,6 +239,8 @@ export async function renderBattle(root) {
btn.addEventListener("mouseenter", () => {
if (btn.classList.contains('playable')) {
playSound('swipe.mp3');
root.selectedCardIndex = null;
updateCardSelection(root);
}
});

Loading…
Cancel
Save