Okay
  Public Ticket #3849710
Ajax bug without smooth scroll
Open

Comments

  • Dima started the conversation

    Hi, guys, thank you for this piece of art theme, but I've got a bug:

    Without turned on option "smooth scroll" in site settings we are getting the js error in console when loading pages with ajax

    gsap.min.js?ver=6.7.2:10 Uncaught TypeError: Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.
        at PropTween._setterFunc [as set] (gsap.min.js?ver=6.7.2:10:43243)
        at PropTween._renderComplexString [as r] (gsap.min.js?ver=6.7.2:10:43736)
        at Tween.render (gsap.min.js?ver=6.7.2:10:38518)
        at ma (gsap.min.js?ver=6.7.2:10:1833)
        at na (gsap.min.js?ver=6.7.2:10:1981)
        at Array.updateRoot (gsap.min.js?ver=6.7.2:10:31116)
        at yl (gsap.min.js?ver=6.7.2:10:15878)


    And as the result the page doesn't scroll to proper place (beginning of it). For example, case loads at the same place as previous page was scrolled.

    When "smooth scroll" is turned on, everything is ok. Seems that scrollTo uses libraries that doesn't load without smooth scroll.

  •  2,061
  •   Dima replied privately