开发者

Android browser Javascript onclick event not receiving callbacks

开发者 https://www.devze.com 2023-01-27 04:44 出处:网络
I have a web application that has to be run on Android. There are images on the web page that have 开发者_C百科onClick event listener (Javascript).

I have a web application that has to be run on Android.

There are images on the web page that have 开发者_C百科onClick event listener (Javascript).

For some reason, the onClick event works only after A LOT of touches on the image.

Does anyone know how to fix this problem?


I fixed it using onTouchStart event instead of onClick event.

0

精彩评论

暂无评论...
验证码 换一张
取 消