I am building a card game as a web app that involves clicking cards as fast as possible. I am using ReactJS (although I don't think that's too relevant) and set an onClick
function on the card <div>
to select it.
However, often times the click does not successfully register, especially on mobile devices. I believe what is going on is that sometimes the clicks are registered as tiny drags instead, as dragging the card does nothing.
How do I make the clicks more responsive and avoid this problem? For instance, registering the drags as clicks somehow might be a solution, although I don't know how to do that.