Event: zooming: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<yambe:breadcrumb>Turn Events</yambe:breadcrumb>") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This event is triggered when the zoom is changed. | |||
{| class="wikitable" | |||
|- | |||
! scope="col"| Argument | |||
! scope="col"| Type | |||
! scope="col"| Description | |||
|- | |||
| event | |||
| Object | |||
| The event object | |||
|- | |||
| newZoomValue | |||
| Number | |||
| The new zoom factor | |||
|- | |||
| currentZoomValue | |||
| Number | |||
| The current zoom factor | |||
|} | |||
{| class="wikitable" | |||
|- | |||
! Default action | |||
|- | |||
| To change the zoom | |||
|} | |||
For example: | |||
<pre class="javascript"> | |||
$("#flipbook").bind("zooming", function(event, newZoomValue, currentZoomValue) { | |||
alert("New zoom: "+currentZoomValue); | |||
}); | |||
</pre> | |||
<yambe:breadcrumb>Turn Events</yambe:breadcrumb> | <yambe:breadcrumb>Turn Events</yambe:breadcrumb> |
Latest revision as of 06:38, 26 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); });
<yambe:breadcrumb>Turn Events</yambe:breadcrumb>