Tapping on scrolled list generates tap event for wrong element

风格不统一 提交于 2019-12-12 03:41:53

问题


Our HTML5 site generates the tap event for the wrong element when scrolling through a list.

To reproduce:

1) Visit www.tekiki.com on your iPhone or iOS device. Scroll through the list rapidly.

2) Tap on one of the items while the list is still scrolling.

The wrong item gets displayed because the tap event is generated for the wrong element.

We're using jQuery Mobile 1.4.

How can we fix this?


回答1:


Maybe this is an issue with the 300ms delay. Use the fastclick library to remove the delay. This also improves the ui behavior and feel of the site.



来源:https://stackoverflow.com/questions/22089790/tapping-on-scrolled-list-generates-tap-event-for-wrong-element

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!