kswedberg / jquery-smooth-scroll

Automatically make same-page links scroll smoothly
MIT License
1.97k stars 427 forks source link

s.stop() is not a function #104

Closed jennifer-shehane closed 7 years ago

jennifer-shehane commented 7 years ago

jQuery - v3.2.1 jQuery Smooth Scroll - v2.2.0

My code

$("a").smoothScroll()

Everything I've written hits this error:

s.stop is not a function
kswedberg commented 7 years ago

Yikes! Thanks for the report. Will look into this asap. I'm guessing you've minified the script?

kswedberg commented 7 years ago

Hmm. Just tested locally with jQuery 3.2.1 and had no problems. Are you using a custom build of jQuery that doesn't include the animation/effects component? Are you using jQuery.noConflict() somewhere? What happens if you open developer tools and do something like $('body').stop() in the console?

jennifer-shehane commented 7 years ago

Yes, I did figure this out. I was only including the slim version of jQuery, which did not include animations. Apologies!

kswedberg commented 7 years ago

Ah, good to know! thanks for the follow-up, @jennifer-mann