You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been playing around with Your directive and I found it really nice.
I had no problem with getting it up and running, but after removing jQuery from my project Your directive stopped working.
One thing I was able to fix was able to fix was element selection.
Instead: var $element = $(scrollContainer);
I'm using: var $element = angular.element(document.querySelector(scrollContainer));
but problem remains with: $element.animate({ scrollTop: scrollPos }, scrollSpeed);
I've found angular-only way to animate, but I'm not angular expert so it's hard for me to combine both.
Thanks for help.
The text was updated successfully, but these errors were encountered:
I've been playing around with Your directive and I found it really nice.
I had no problem with getting it up and running, but after removing jQuery from my project Your directive stopped working.
One thing I was able to fix was able to fix was element selection.
Instead:
var $element = $(scrollContainer);
I'm using:
var $element = angular.element(document.querySelector(scrollContainer));
but problem remains with:
$element.animate({ scrollTop: scrollPos }, scrollSpeed);
I've found angular-only way to animate, but I'm not angular expert so it's hard for me to combine both.
Thanks for help.
The text was updated successfully, but these errors were encountered: