Open ghost opened 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 ;-)
Thanks for the tip @sbanas-soi :+1:
set viewport in private fields to window.innerHeight and everythink will work fine, maybe this will help someone :)
Thanks for the tip @jleed :+1:
@jleed how i set in the js code?
@jleed please give an example :)
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
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
This solutions is not work in Chrome... ..Any news?
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/
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.
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