summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-08 07:19:51 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-10-08 07:19:51 +0100
commit5565a75d9314237ad1f9e4d6bea1ed756e163dbe (patch)
treed1883eee6825c4236d0fe6dd34e0a5f7d2a607ec /play.js
parent5103d59ddc92d0fb994cea7365c3fef8a5d743af (diff)
download1989-dawn-of-freedom-5565a75d9314237ad1f9e4d6bea1ed756e163dbe.tar.gz
Fix for mobiles
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
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', () => {