jQuery 水平滚动 - 移动 - 滑动?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7337110/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Horizontal scroll - Mobile - swipe?
提问by Dancer
Can anyone please recommend the best way to trigger a horizontal Jquery scroller using swipe gesture?
任何人都可以推荐使用滑动手势触发水平 Jquery 滚动条的最佳方法吗?
We have a working web version which we would like to implement onto our Android site, but dont know the best way to approach this.
我们有一个可用的网络版本,我们希望在我们的 Android 网站上实现它,但不知道解决这个问题的最佳方法。
We basically want to use a scrolling list similar to these examples (http://caroufredsel.frebsite.nl/) triggered via swipe gesture?
我们基本上想使用通过滑动手势触发的类似于这些示例(http://caroufredsel.frebsite.nl/)的滚动列表?
Any advice or alternate versions gratefully received.
感谢收到任何建议或替代版本。
Cheers Paul
干杯保罗
回答by Jasper Moelker
I would suggest the excellent jQuery TouchSwipe Plugin by Matt Bryson: http://labs.skinkers.com/touchSwipe/. This plugin offers advanced control over direction and distance: http://labs.skinkers.com/touchSwipe/demo/advanced_2.php
我会推荐 Matt Bryson 的优秀 jQuery TouchSwipe 插件:http://labs.skinkers.com/touchSwipe/ 。这个插件提供了对方向和距离的高级控制:http: //labs.skinkers.com/touchSwipe/demo/advanced_2.php
An all inclusive alternative would be http://www.photoswipe.com/
一个全包的替代方法是http://www.photoswipe.com/
similar question: Calculate swipe distance in jQuery-mobile
回答by Marvin3
Actually, there is such carousel controlled by swipe gestures. But it's commercial - http://dimsemenov.com/plugins/touchcarousel/or this one.
实际上,有这样一种通过滑动手势控制的轮播。但它是商业的 - http://dimsemenov.com/plugins/touchcarousel/或这个。