Event: zooming: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 19: Line 19:
| The current zoom factor
| The current zoom factor
|}
|}
{| class="wikitable"
|-
! Default action
|-
| To change the zoom
|}


For example:
For example:

Revision as of 03:57, 7 July 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);
});

<yambe:breadcrumb>Turn Events</yambe:breadcrumb>