simplr-smoothscroll icon indicating copy to clipboard operation
simplr-smoothscroll copied to clipboard

Wordpress scrolling down not working

Open ghost opened this issue 10 years ago • 11 comments
trafficstars

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

ghost avatar Feb 03 '15 11:02 ghost

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 ;-)

sbanas-soi avatar Feb 08 '15 20:02 sbanas-soi

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

simov avatar Feb 08 '15 21:02 simov

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

itrcz avatar Mar 27 '15 11:03 itrcz

Thanks for the tip @jleed :+1:

simov avatar Mar 27 '15 17:03 simov

@jleed how i set in the js code?

AdsonCicilioti avatar Jun 25 '15 08:06 AdsonCicilioti

@jleed please give an example :)

ststaynov avatar Oct 26 '15 11:10 ststaynov

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

brachycera avatar Jan 28 '16 12:01 brachycera

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

zelmandesign avatar May 10 '16 01:05 zelmandesign

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

frolant avatar Sep 27 '17 14:09 frolant

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/

rish30990 avatar Mar 26 '18 05:03 rish30990

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.

Vermasiddhant89 avatar Dec 12 '18 10:12 Vermasiddhant89