I need to block the scroll and refresh depending on a variable on the scope. One of the problems I found was the impossibility to block the scroll depending on this variable, I tried with scroll property on ion-content and also with $ionicScrollDelegate.freezeAllScrolls($scope.refreshEnable), none of them stop the scroll.
I’ve created the following code:
Where you can see what I’m trying to do, basically I have a list with elements which should be able to be refreshed when a variable on the scope is true and you have a button to change this value.
As you can see the event to refresh is blocked but it is still available to scroll and worst than that the list never comes back to the top of the content when refresher is disable and you pull down.
Any help will be very appreciated.