简体   繁体   English

用于触摸屏设备的JavaScript库

[英]JavaScript libraries for touch screen devices

I know there are a number of frameworks to help make web applications on Mobile Safari/Webkit look and behave like native applications (eg, jQTouch), but are there any more light-weight libraries that help out at a slightly lower-level? 我知道有很多框架可以帮助使Mobile Safari / Webkit上的Web应用程序看起来和行为像本机应用程序(例如,jQTouch),但是还有更轻量级的库可以帮助稍微降低一些吗?

eg, I might want to add some animations on certain touch events to reproduce an iPhone style swipe. 例如,我可能想在某些触摸事件上添加一些动画来重现iPhone风格的滑动。

I don't want to create an iPhone web application as such, just enhance an existing site with a few special touch events. 我不想创建这样的iPhone Web应用程序,只需通过一些特殊的触摸事件来增强现有网站。

It's not so difficult to create this stuff by directly using the touch events that the device provides, but some of the iPhone animation styles are quite complex to reproduce. 通过直接使用设备提供的触摸事件来创建这些东西并不困难,但是一些iPhone动画样式的复制非常复杂。 eg, the bounce when you get to the end of a scroll bar, etc... Just wondering if anyone has done the work and wrapped it up into an open source library. 例如,当你到达滚动条的末尾时弹跳等等......只是想知道是否有人完成了工作并将其包装到一个开源库中。

这并没有完全回答你的问题,但是由于你特别提到了反弹滚动, 所以TouchScroll刚刚在周二发布。

http://zeptojs.com/ is all you want. http://zeptojs.com/就是你想要的。

It's jQuery trimmed for webkit mobile. 这是为webkit移动设备修剪的jQuery。 Excellent library with (brand new) great documentation. 优秀的图书馆(全新)精彩的文档。 Handles ajax, dom selection, touch events. 处理ajax,dom选择,触摸事件。 Does not have UI components. 没有UI组件。

Very lightweight. 很轻巧。

I am looking for the same thing, JavaScript frameworks free from IE stuff.. 我正在寻找同样的东西,JavaScript框架免费从IE的东西..

So far 至今

XUI http://code.google.com/p/xui-js/ XUI http://code.google.com/p/xui-js/

SLY http://github.com/digitarald/sly SLY http://github.com/digitarald/sly

Coming Soon jQuery for touch devices (not jqtouch) http://jquerymobile.com/2010/08/announcing-the-jquery-mobile-project/ 即将推出用于触控设备的jQuery(不是jqtouch) http://jquerymobile.com/2010/08/announcing-the-jquery-mobile-project/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM