simov / simplr-smoothscroll

Smooth scrolling in all browsers
MIT License
209 stars 91 forks source link

Wordpress scrolling down not working #12

Open ghost opened 9 years ago

ghost commented 9 years ago

I tried to use this great plugin in my wordpress site, scrolling up is fine but scrolling downward its not working.

Wordpress 4.1 Jquery 1.8.1

sbanas-soi commented 9 years ago

In my case it doesn't work when you have height: 100% on html, body. But it has nothing to do with WP. The resolution in this case is to change plugin option 'target' to some container of the whole content and 'container' to body. Hope it will help ;-)

simov commented 9 years ago

Thanks for the tip @sbanas-soi :+1:

itrcz commented 9 years ago

set viewport in private fields to window.innerHeight and everythink will work fine, maybe this will help someone :)

simov commented 9 years ago

Thanks for the tip @jleed :+1:

AdsonCicilioti commented 9 years ago

@jleed how i set in the js code?

ststaynov commented 9 years ago

@jleed please give an example :)

brachycera commented 8 years ago

I had the same problem with chrome and zurbs foundation framework and the srSmoothscroll standard options. Foundation sets the body { height:100% } I overwrote it with body { height:auto } now scrolling works again with chrome 47 (windows7 and osX 10.9

zelmandesign commented 8 years ago

I think I found a solution, try this : $(function () { $.srSmoothscroll({ // defaults step: 55, speed: 400, ease: 'swing', target: $('html'), container: $('body') }) })

so replaced body with html and window with body... it works in chrome and safari. Doesn't seem to work in Firefox... Very frustrating

frolant commented 7 years ago

This solutions is not work in Chrome... ..Any news?

rish30990 commented 6 years ago

None of available solution was working for me, so at last I ended up using a plugin that resolved my issue. Here is the link https://wordpress.org/plugins/mousewheel-smooth-scroll/

Vermasiddhant89 commented 5 years ago

Get rid of the following line:

scrollTo is already supported by jquery itself and is probably conflicting with the jquery function. Otherwise try to remove the following lines:

And add them one by one till you find the cause.