Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Touch device ghost click triggers on different element Reply To: Touch device ghost click triggers on different element

#252972
Shikkediel
Participant

I think the code at the top is what the other answer was intended to be but with all the details discussed in the comments, yours does look quite complete.

There was an underwhelming topic on SO where someone asked how to switch between touch and mouse. It already having an accepted answer, I suggested to listen to both by posting some rather crude and flawed code. Quite a while later someone found and upvoted this so I felt obliged to at least post a bug free version. That’s enough for me.

It’ll be a while before I turn the last stone on this and come up with the most ideal code…