N-Shar-ma / Emoji-Card-Game

Emoji guessing card matching game, made using vanilla JavaScript, lots of css animations and the native HTML drag and drop API

Home Page:https://emoji-card-game.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drag and drop doesn't work on touch devices

yohanesgultom opened this issue · comments

Has anyone try this app from android phone? Drag and drop doesn't seems to work. Usually we can tap an element for few seconds dan drag it. But in this case, a card would just turn transparent but not draggable

Record_2022-10-05-06-07-04.mp4

@yohanesgultom thank you for creating this issue! Yes, currently the game does not support touch devices, as the drag and drop only works via mouse / touchpad.

However, if more than a few people would like to have the game work on touch / mobiles devices as well, we could try to update the code, and use a different, more versatile drag and drop API, to make it work on those devices as well!

Those who feel that this game would be fun to play on mobile phones as well, please react with the 🚀 emoji to make yourselves be heard!

Great! While we are at it, I think I can propose a simple (maybe temporary workaround) using a polyfill from https://github.com/Bernardo-Castilho/dragdroptouch. Let me know what you think