iPhone / iPad / iPod刷卡事件javascript [英] iPhone / iPad / iPod swipe events javascript

查看:103
本文介绍了iPhone / iPad / iPod刷卡事件javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找(如果可能的话)javascript库/插件来提供滑动事件。

Im looking for (if possible) javascript libraries/plugins to provide swipe events.

但是我不是在简单检测到滑动之后,例如jqTouch提供。我希望创建类似于iPod设备上的图像查看器的行为。因此,例如,您向左或向右拖动以转到下一个图像。您必须将图像拖动50%以上,然后松开它,它将捕捉到下一个图像。如果你没有拖动50%的图像,它只会快速回到原始状态。

However I am not after the simple detection of a swipe, for example what jqTouch provides. I wish to create behavior similar to that of the images viewer on the iPod devices. So for example you drag left or right to go to the next image. You have to drag the image over 50% of the way and let go and it will snap to the next image. If you do not drag 50% of the image, it just snaps back to the original.

任何建议都表示赞赏。谢谢。

Any advice appreciated. Thanks.

推荐答案

我想你可能正在寻找像 Sencha Touch中的Carousel组件(在iPad / iPhone或Chrome / Safari上查看)。这有你想要内置的行为。[我为Sencha工作]

I think you might be looking for something like the Carousel component in Sencha Touch (view on iPad/iPhone or Chrome/Safari). This has the behavior you want built in. [I work for Sencha]

这篇关于iPhone / iPad / iPod刷卡事件javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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