Two pages grabbing click event on iPad

I have a website I have written which is cross platform. On the iPad I have to use the mouseup and mouseup events to simulate a click (because it is events imbedded within SVG inside an iFrame and there are special events if someone presses and holds, or presses and drags or presses and releases (clicks))

Here is what is happening. touchStart event triggered. touchEnd event triggered. My script sees that this is a click event and then triggers the following event:

window.parent.window.location.href = "../TRL/SelectHotspot.aspx" + returnString

The browser then goes to that page, but then (strange this...) the control that is in that exact position on the target page recieves a click event. This means that it then moves onto the next page.

Does anyone know what would cause this and how to stop it please? It doesn't happen on desktops (they don't expose the touchstart / touchend event anyway) and not on any android devices.

链接地址: http://www.djcxy.com/p/95586.html

上一篇: touchend没有被触发

下一篇: iPad上有两个页面抓取点击事件