Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Why can't JS scroll as smoothly as jQuery? Reply To: Why can't JS scroll as smoothly as jQuery?

#197028
Shikkediel
Participant

I think I get the gist… I remember spending a lot of time trying to make the distinction if html or body needs to be addressed in jQuery because with that you’re basically forced to do the same thing when animating, such as $(html, body). Didn’t get to the bottom of it (haven’t seen a clean solution anywhere else either). I was logging the digits that were output (I think all browsers generate it for both elements so they’re never undefined) but making sense of that reminds me of the movie I watched last night. It would be an interesting one to solve though (and I knew very little about JS at the time in any case).