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

#252916
Shikkediel
Participant

Small addendum. By adding the punch class to html or body, the Android issue is pretty much resolved because all elements listen to the same page:tap (event on the element below will then not get triggered). Adding the class to the element itself would not work in that case. The extra bit of code that silences the element below is mostly effective now for not getting the link underneath hightlighted because of an emulated hover effect. Which I think occurs with mouseup, meaning that specific emulated event sometimes takes place more than 500ms after the initial touchstart… slightly annoying but otherwise to no real effect.