Event: doubleTap: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<yambe:breadcrumb>Zoom Events</yambe:breadcrumb>") |
No edit summary |
||
Line 1: | Line 1: | ||
This event is triggered when a double tap or double click happens on the viewport element. | |||
{| class="wikitable" | |||
|- | |||
! scope="col"| Argument | |||
! scope="col"| Type | |||
! scope="col"| Description | |||
|- | |||
| event | |||
| Object | |||
| Event Object | |||
|} | |||
Example: | |||
<pre class="javascript"> | |||
$("#zoom-view").bind("zoom.doubleTap", function(event) { | |||
if ($(this).zoom("value')==1) { | |||
$(".magazine"). | |||
removeClass("animated"). | |||
addClass("zoom-in"); | |||
$(this).zoom("zoomIn", event); | |||
} else { | |||
$(this).zoom("zoomOut"); | |||
} | |||
}); | |||
</pre> | |||
<yambe:breadcrumb>Zoom Events</yambe:breadcrumb> | <yambe:breadcrumb>Zoom Events</yambe:breadcrumb> |
Revision as of 02:11, 9 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) { $(".magazine"). removeClass("animated"). addClass("zoom-in"); $(this).zoom("zoomIn", event); } else { $(this).zoom("zoomOut"); } });
<yambe:breadcrumb>Zoom Events</yambe:breadcrumb>