Javascript 库 - 移动触摸 - 轴上可拖动对象而不禁用滚动
我有一个带有滑块轮播的页面。最近,我的任务是添加触摸界面,以便通过手指滑动来浏览幻灯片。
我找到了一个旧的 jQuery 插件,它似乎不再受支持。它允许根据需要进行触摸滑动,但如果滑动源自滑块轮播元素的边界,则它会禁用通过垂直滑动滚动页面的功能。
是否有人拥有元素可拖动库的资源,该资源允许指定的轴(例如水平),如果滑动的原点发生在元素内,则不会禁用垂直滚动意图?这应该可以在 iPhone、Blackberry OS 5+ 等设备上运行
engadget.com 在其移动网站上有一个滑块可以实现此目的。
I have a page with a slider carousel. Recently, I've been tasked with adding touch interfacing to explore the slides by finger swiping.
I located an older jQuery plugin which appears to be no-longer supported. It allowed for touch sliding, as required, but it disabled the ability to scroll the page with a vertical swipe if the swipe originated within the slider carousel element's boundaries.
Does anyone have a resource for an element draggable library that allows to a specified axis (horizontal, for example) that won't disable vertical scrolling intentions if the origin of the swipe occurs within the element? This should function across devices like iPhone, Blackberry OS 5+
engadget.com has a slider on their mobile website that accomplishes this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有几个jQuery 手势插件可以帮助您。您可以轻松地将其中之一集成到自定义滑块插件中。
There are a couple jQuery gesture plugins, that may help you out. You could easily integrate one of these into a custom slider plugin.