I'm using Angular plugin called duScroll (https://github.com/oblador/angular-scroll/) for scrolling when a href is clicked. All the sections are within a container with height of 500px called 'scroll-container'. But the scroll is not happening.
I was able to get it to atleast scroll by changing a line in duScroll.js
proto.scrollToElement = function() {...
...
return angular.element(document.querySelector('.scroll-container')).scrollTo(0, top-45, duration, easing);
}
But still the scroll is inconsistent and does not work properly. Where am I going wrong ?