JQTouch-滚动后li中的链接不起作用 [英] JQTouch - links in li not working after scrolling

查看:57
本文介绍了JQTouch-滚动后li中的链接不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用JQTouch的排序列表.该列表包含约20个包含不同链接的锂元素.屏幕上没有滚动的第一个li正常工作.但是当我在iPhone上向下滚动后,链接不再起作用.

I have a sorted list using JQTouch. The list contains about 20 li-elements containing different links. The first li's that are on the screen without scrolling are working just fine. But after I scrolled down on my iPhone the links are no longer working.

以下是代码段:

<ul class="rounded">
<li class="arrow"><a id="1" href="#opdracht">1. Typical Amsterdam</a></li>
<li class="arrow"><a id="2" href="#opdracht">2. Route</a></li>
<li class="arrow"><a id="3" href="#opdracht">3. Directions</a></li>
<li class="arrow"><a id="4" href="#opdracht">4. Shops</a></li>
---
<li class="arrow"><a id="5" href="#opdracht">9. Sightseeing</a></li>
<li class="arrow"><a id="6" href="#opdracht">10. Contact</a></li>
</ul>

我真的不知道我在做什么错.我希望有人能帮助我.

I really don't know what I am doing wrong. I hope someone can help me out.

例如,请访问: http://www.wappdesign.nl/teamuitje iPhone,并在滚动后尝试访问该链接.

For an example, please visit: http://www.wappdesign.nl/teamuitje on your iPhone and try to visit the link after scrolling.

推荐答案

jqtouch.min.js文件中

在"handleTouch"功能中:

in the 'handleTouch' function there is:

startX = event.changedTouches[0].clientX,
startY = event.changedTouches[0].clientY,

这些行需要更改为:

startX = event.changedTouches[0].pageX,
startY = event.changedTouches[0].pageY,

请引用此链接 https://github.com/senchalabs/jQTouch/issues/297

这篇关于JQTouch-滚动后li中的链接不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆