Hi Jonathan,
thanks for your reply.
As far as I understand Jack suggested the exact opposite to LukeWilson. The scrollTo plugin seem to not have a onComplete method.
I created a testcase on jsfiddle.
*jsfiddle updated*:
http://fiddle.jshell.net/4UcfT/10/
http://fiddle.jshell.net/4UcfT/10/show/
If you click on Headline 1, it will scrollTo Headline1 and fire the onComplete event. If you click on Headline 2, it will go as far as it can to that headline, but it won't reach the exact position and therefore won't fire the onComplete event.
For me this seems like a bug in scrollTo. If scrollTo reaches the end of the browser window, it's obvious that the whole job is done, isn't it? Maybe I'm missing something.
Thanks,
Daniel