diff -r 322d0feea350 -r 89ef5ed3c48b src/cm/media/js/lib/yui/yui_3.10.3/api/modules/event-tap.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.10.3/api/modules/event-tap.html Tue Jul 16 14:29:46 2013 +0200 @@ -0,0 +1,1603 @@ + + + + + event-tap - YUI 3 + + + + + + + + +
+
+
+ +

+ +
+
+ API Docs for: 3.10.3 +
+
+
+ +
+ +
+
+
+ Show: + + + + + + + +
+ + +
+
+
+

event-tap Module

+
+ + + User Guide & Examples + + + + + + +
+ Defined in: event/js/tap.js:1 +
+ + + +

Available since 3.7.0

+ +
+ + + +
+

The tap module provides a gesture events, "tap", which normalizes user interactions +across touch and mouse or pointer based input devices. This can be used by application developers +to build input device agnostic components which behave the same in response to either touch or mouse based +interaction.

+ +

'tap' is like a touchscreen 'click', only it requires much less finger-down time since it listens to touch events, +but reverts to mouse events if touch is not supported.

+
+ + +
+

Example:

+
+
YUI().use('event-tap', function (Y) {
+    Y.one('#my-button').on('tap', function (e) {
+        Y.log('Button was tapped on');
+    });
+});
+
+
+
+ + +
+
+ +
+ +
+ +
+
+ +
+
+
+
+
+
+ + + + + + + + + +