问题描述
使用名为touchswipe的jQuery插件( Touchswipe http://labs.skinkers.com/touchSwipe /),主要用于台式机和某些移动设备(如银河选项卡或iPad)的网站,用于向左和向右滑动页面第三列.链接到我用html和jQuery制作的页面如下:我的页面但是,当触发滑动事件时,距离和方向为空. [Touchswipe]站点中的演示在使用类似代码时似乎可以正常工作.让我知道我在做错什么,请对此提供帮助.谢谢.
Using a jQuery plugin named touchswipe ( Touchswipe http://labs.skinkers.com/touchSwipe/ ) for a website primarily for desktops and some mobile devices like galaxy tab or iPad for left and right swipe of the third column in the page.Link to my page made with html and jQuery is as follows:my pageHowever while the events for swipe is triggered the distance and direction are given as null. The demos in the [Touchswipe ] site seem to work fine with similar code. Kindly help me on this by letting me know what I'm doing wrong.Thanks.
推荐答案
似乎我的问题主要是由于touchswipe1.2.4....该演示位于touchswipe1.2.3上,因此,将其更改为较旧的版本就可以了.希望对您有帮助.
It seems that my issue was primarily because of touchswipe1.2.4 .... the demo was on touchswipe1.2.3 so changing to the older version did the trick....hope this helps some1..
这篇关于无法在Android或iPad中使用touchswipe插件获取滑动方向和距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!