@anatolys wrote:
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:zoomTo: function() { depreciated('zoomTo'); }, zoomBy: function() { depreciated('zoomBy'); }, activatePullToRefresh: function() { depreciated('activatePullToRefresh'); },
ionic.bundle.js 52151:
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:
<ion-content overflow-scroll='false'> <ion-scroll ...> .... </ion-scroll> </ion-content>
Now I have reverted 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
Posts: 1
Participants: 1