Hello!
I use both zoomBy and zoomTo of $ionicScrollDelegate to zoom photos in photo viewer:
http://ionicframework.com/docs/api/service/$ionicScrollDelegate/
When I updated my project to the latest ionic (1.1.1->1.2.4), I find the problem on Android: zoomBy, zoomTo are marked as deprecated in the navite ScrollView because of the jsScrolling default:
ionic.bundle.js 6935:
/** Methods not used in native scrolling */
callback: function() { depreciated('callback'); },
zoomTo: function() { depreciated('zoomTo'); },
zoomBy: function() { depreciated('zoomBy'); },
activatePullToRefresh: function() { depreciated('activatePullToRefresh'); },
ionic.bundle.js 52151:
// Android
// -------------------------
setPlatformConfig('android', {
...
scrolling: {
jsScrolling: false
}
});
According to the documentation:
scrolling.jsScrolling(value)
Whether to use JS or Native scrolling. Defaults to native scrolling. Setting this to
true has the same effect as setting each ion-content to have overflow-scroll='false'.
I can set overflow-scroll in my ion-content, but it does not help:
....
The both zoomBy and zoomTo still does not work.
Now I have rollbacked the jsSetting default in my config:
.config(function($ionicConfigProvider) {
$ionicConfigProvider.scrolling.jsScrolling(true);
})
But may be you know more elegance solution.
Thanks in advance.
BR,
AnatolyS