ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Add on-zoom callback attribute to ion-scroll

Open PezzerDev opened this issue 12 years ago • 2 comments

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
}

PezzerDev avatar Sep 23 '14 07:09 PezzerDev

It looks like on-scroll fires on zoom event and passes the current scale. Its just not in the documentation.

PezzerDev avatar Sep 23 '14 08:09 PezzerDev

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.

ionitron-bot[bot] avatar Sep 06 '18 15:09 ionitron-bot[bot]