Event: doubleTap: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 15: | Line 15: | ||
<pre class="javascript"> | <pre class="javascript"> | ||
$("#zoom-view").bind("zoom.doubleTap", function(event) { | $("#zoom-view").bind("zoom.doubleTap", function(event) { | ||
if ($(this).zoom("value | if ($(this).zoom("value")==1) { | ||
$(this).zoom("zoomIn", event); | $(this).zoom("zoomIn", event); | ||
} else { | } else { |
Latest revision as of 03:29, 17 July 2012
This event is triggered when a double tap or double click happens on the viewport element.
Argument | Type | Description |
---|---|---|
event | Object | Event Object |
Example:
$("#zoom-view").bind("zoom.doubleTap", function(event) { if ($(this).zoom("value")==1) { $(this).zoom("zoomIn", event); } else { $(this).zoom("zoomOut"); } });
<yambe:breadcrumb>Zoom Events</yambe:breadcrumb>