Event: zooming

From Turn.js Documentation
Revision as of 06:38, 26 November 2012 by Emmanuel (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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>