Event: tap

From Turn.js Documentation
Revision as of 03:29, 17 July 2012 by Emmanuel (talk | contribs) (Created page with "This event is triggered when a tap or click happens on the viewport element. {| class="wikitable" |- ! scope="col"| Argument ! scope="col"| Type ! scope="col"| Description |-...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is triggered when a tap or click happens on the viewport element.

Argument Type Description
event Object Event Object

Example:

$("#zoom-view").bind("zoom.tap", function(event) {
	if ($(this).zoom("value")==1) {
		$(this).zoom("zoomIn", event);
	} else {
		$(this).zoom("zoomOut");
	}
});

<yambe:breadcrumb>Zoom Events</yambe:breadcrumb>