$ionicScrollDelegate won't work when used with overflow-scroll="true"


#1
       <ion-tabs>
                 <ion-tab>
                 </ion-tab>
                 <ion-tab>
                             <ion-content class="has-header has-subheader" overflow-scroll="true" delegate-handle="myScroll" >
                             </ion-content>
                </ion-tab>
        </ion-tabs>

in my controller: I have added $ionicScrollDelegate as dependency and I’m using

 $ionicScrollDelegate.$getByHandle('myScroll').scrollTop(); //To scroll to Top

The above scroll handler is working fine with overflow-scroll disabled.
With overflow-scroll disabled scrolling is jerky.
Please help me with this issue.


#2

DelegateHandle represents the javascript-scroll object i think. So you can control scroll things with javascript. If you are using overflow-scrolling it is not longer connected to javascript and ionic.


#3

Hi ,
Thanks for your reply, is there any workaround to achieve scrollTop with overflow-scroll