unable to get swipe direction and distance using touchswipe plugin in android or iPad

若如初见. 提交于 2020-01-06 13:30:08

问题


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 page However 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.


回答1:


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..



来源:https://stackoverflow.com/questions/6917746/unable-to-get-swipe-direction-and-distance-using-touchswipe-plugin-in-android-or

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