Views
Actions

Event: change

From Turn.js Documentation
Revision as of 15:20, 3 August 2012 by Emmanuel (Talk | contribs)

Jump to: navigation, search

This event is triggered before changing the current zoom of the flipbook

Argument Type Description
event Object Event Object
Default action
To change the zoom


Example:

$("#zoom-view").bind("zoom.change", function(event, newZoom) {
	// Disable the flipbook to zoom out
	if (newZoom<=1) {
		event.preventDefault();
	}
});
Main Page > API > Zoom Events > Event: change