JavaScript framework YUI 3.2 interprets gestures
Version 3.2.0 of Yahoo's JavaScript framework, known simply as YUI (Yahoo! User Interface), now supports touch events and gesture controls. Events as touchstart
and touchend
handle touch controls. YUI recognises flick
, whereas developers had to program more complicated gestures like wipes with such events as gesturemovestart, gesturemove
and gesturemoveend
from scratch. Finger movements on the screen will be recognised as gestures, as will mouse driven device movements.
The developers put browser-specific code, primarily for Microsoft's Internet Explorer, into separate modules. As a result, YUI applications reportedly load faster for users of other browsers.
The first incarnation of the "CSS Grid" component is currently marked as beta code and examples are provided. This stylesheet provides classes that allow a website to be broken up into vertical strips or grids of a fixed width. Columns are available between half and one 24th of the overall width. Also marked as beta software and inspired by Apple's iPhone, ScrollView is another addition which provides fast vertical and horizontally navigable scrolling lists.
A summary of YUI 3.2.0 changes can be found on the project's website. YUI is made available under a BSD licence and is available from the YUI 3 page along with documentation and examples.
See also:
- YUI 3.2.0 Released: SimpleYUI, Touch Event Support, Gestures, Transitions, CSS Grids, ScrollView, Uploader, and More, a YUI blog post.
(crve)