Has anyone tried using the jQuery Smooth-Scroll library with Angular.js?
There are some unexpected interactions though:
1. I don't expect the links under "Book Recommendations" to actually affect the hash "#" part of the URL since the smooth-scroll library is supposed to be interrupting those click events.
2. The scrolling is not smooth. It jumps around.
3. The dynamically positioned "Book Recommendations" menu sometimes flys off the top of the screen. (This doesn't happen if you just load the page and then scroll manually up and down.)
4. The offset option on the smoothScroll function doesn't seem to have any effect.
I should mention that I think I have it wired up according to the instructions correctly because I can pass an "afterScroll: function() {alert("Hello")}" option to the smoothScroll function and see the alert box.
The desired behavior is exactly like this website's:
(Of course, they aren't using angular yet.)
I haven't put together a jsfiddle yet to demonstrate how things aren't working because I'm using several libraries together to make things work. I might try to put one together if someone doesn't respond with, "Oh, I've seen this before. Here's what you do ..."
Thanks in advance,
Pepper