Views
Actions

Zoom Option: when

From Turn.js Documentation
Jump to: navigation, search

Sets event listeners. The keys must be listed on the list of events.

Type Default value
Object Empty object

For example

$("#zoom-viewport").turn({when: {
	doubleTap: function(event) {
		// Implementation
	}
}
});

See Also

Main Page > API > Zoom Options > Zoom Option: when