From 5565a75d9314237ad1f9e4d6bea1ed756e163dbe Mon Sep 17 00:00:00 2001 From: iainp5 Date: Tue, 8 Oct 2024 07:19:51 +0100 Subject: Fix for mobiles --- play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'play.js') diff --git a/play.js b/play.js index 4fea383..44a7d84 100644 --- a/play.js +++ b/play.js @@ -132,7 +132,7 @@ const spaceCharacteristicsElement = document.getElementById('space-characteristi hand_card.id=`card_${c}`; hand_card.src = `cards/e${c}.gif` hand_card.my_card = c; - hand_card.addEventListener('mousedown', on_click_card); + hand_card.addEventListener('click', on_click_card); if(!is_mobile) { hand_card.addEventListener('mouseenter', () => { -- cgit v1.2.3