angular-scroll-when icon indicating copy to clipboard operation
angular-scroll-when copied to clipboard

Remove jQuery dependency

Open Misiu opened this issue 9 years ago • 0 comments

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.

Misiu avatar Mar 16 '16 13:03 Misiu