Jump to content
Search Community

petero

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by petero

  1. That was it Turning off the bezier animation fixed the scrolling. Now i'll have to work out how to have animation only triggered by manual scrolling, not the plugin. Thanks for your help, Peter
  2. Thanks. I'll try to make a codepen, but I think it's all too integrated with the full app to simplify. But what you said is interesting, in that I do have a separate bezier animation that will trigger when a particular element is scrolled into view, so technically, that could happen during the scrollTo. I'll disable the bezier & see what happens. Thanks, Peter
  3. 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.
×
×
  • Create New...