Abhishek Chadha

Abhishek Chadha

  • 494
  • 5k
  • 433k

Click Event Not Accurate in Mobile

Sep 5 2023 12:20 PM

There is a strange issue as I have a mobile application running on simple Javascript and I have a case were an icon is visible upon a certain condition and there is a click event on that icon but somehow the click position is not accurate, when I click around that icon then it fires so upon clicking 5-7 times on that icon it fires and when I debug through developer tools it works on accurate position.

My Icon is in Div and when I change the div to span in developer tools it works as expected When I change this div to span and deploy again it does not work so the thing is that when I change div and span at run time in developer tools it starts working as expected.

can anyone help me here?

Answers (2)