Hi,
I'm using the ScrollTo plugin to scroll elements into view, which works fine for a few clicks, but then goes into an infinite loop with error "Uncaught TypeError: Cannot read property 'y' of undefined" on TweenMax.js line 2008:
a[0] = new Segment(values[0][p], 0, 0, values[(l < -1) ? 0 : 1][p]);
l is -1, but values[1] is undefined.
I'm using TweenLite.to(window, 2, {scrollTo:{y:y}, ease:Power2.easeOut}), where my y is the offsetTop of an element.
Is there any way to trap that error? Putting a try/catch around the Tween doesn't help.