简体   繁体   中英

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?

eg, I might want to add some animations on certain touch events to reproduce an iPhone style swipe.

I don't want to create an iPhone web application as such, just enhance an existing site with a few special touch events.

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

It's jQuery trimmed for webkit mobile. Excellent library with (brand new) great documentation. Handles ajax, dom selection, touch events. Does not have UI components.

Very lightweight.

I am looking for the same thing, JavaScript frameworks free from IE stuff..

So far

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

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

Coming Soon jQuery for touch devices (not jqtouch) http://jquerymobile.com/2010/08/announcing-the-jquery-mobile-project/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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