In Android Browser link does not always execute onClick causing focus instead

后端 未结 5 2221
梦如初夏
梦如初夏 2021-02-09 07:51

I am trying to program a very standard JS behavior for a link using an HREF onClick handler, and I am facing a strange problem caused by what I believe to be focus/touch mode be

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-09 08:28

    I wonder if it's related to the onclick -- am I correct to assume that every now and then clicking any link does not follow it? To me, this seems related to the way you touch the screen (or how this is interpreted), like maybe by clicking next to the link and dragging a bit, rather than clicking on the link?

    (If my assumption is correct, then this might be faulty hardware: maybe you can try on another device? Or maybe it only happens on a particular side of the link if the screen is not aligned well, and then there might be some software offset one can change?)

提交回复
热议问题