ionic-framework
ionic-framework copied to clipboard
Add on-zoom callback attribute to ion-scroll
Add an attribute to <ion-scroll> to allow a callback to be registered that will be called on zoom event. This would be similar to the on-scroll attribute, but triggered on zoom, passing the current scale.
<ion-scroll zooming="true" on-zoom="zoomHappened">
$scope.zoomHappened = function(scale) {
// Do stuff
}
It looks like on-scroll fires on zoom event and passes the current scale. Its just not in the documentation.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.