Views
Actions

Event: zooming

From Turn.js Documentation
(Difference between revisions)
Jump to: navigation, search
 
Line 31: Line 31:
 
<pre class="javascript">
 
<pre class="javascript">
 
$("#flipbook").bind("zooming", function(event,  newZoomValue, currentZoomValue) {
 
$("#flipbook").bind("zooming", function(event,  newZoomValue, currentZoomValue) {
alert("New zoom: "+currentZoomValue);
+
  alert("New zoom: "+currentZoomValue);
 
});
 
});
 
</pre>
 
</pre>
  
 
<yambe:breadcrumb>Turn Events</yambe:breadcrumb>
 
<yambe:breadcrumb>Turn Events</yambe:breadcrumb>

Latest revision as of 23:38, 25 November 2012

This event is triggered when the zoom is changed.

Argument Type Description
event Object The event object
newZoomValue Number The new zoom factor
currentZoomValue Number The current zoom factor
Default action
To change the zoom


For example:

$("#flipbook").bind("zooming", function(event,  newZoomValue, currentZoomValue) {
  alert("New zoom: "+currentZoomValue);
});
Main Page > API > Turn Events > Event: zooming