|
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)
Via: touch-adapter 0.1
0 Comment:
Post a Comment