30 January, 2013

touch-adapter 0.1


Developer:

Website:

License / Price:

Platforms:

Databases:

Language:

Last Updated:

Category:
Simon Porritt | More scripts
github.com
Other Free / Open Source License 

Windows / Linux / Mac OS / BSD / Solaris
N/A
JavaScript
January 30th, 2013, 15:57 GMT
C: \ Development Tools \ Mobile Development Tools

touch-adapter (or TouchAdapter) provides the means for JS developers to convert events acquired via a touchscreen-enabled device to regular mouse clicks, for which JavaScript has plenty of native methods to work with.

By doing this, developers can avoid registering two events for the same kind of action/interaction, making code a lot easier to maintain and upgrade.

A demo for the library is included with the download package.

touch-adapter comes as a framework agnostic library. A jQuery version is also included, and MooTools and YUI versions are expected with future versions.

Here are some key features of "touch-adapter":

Touch-to-mouse event translation:
· touchstart -> mousedown
· touchend -> mouseup
· touchmove -> mousemove

Supported devices:
· All desktop browsers
· iOS
· Android (planned, in future versions)

Requirements:

· JavaScript enabled on client side
· jQuery 1.7 or higher (for the jQuery plugin only)


Download button
Via: touch-adapter 0.1

0 Comment: