Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wordpress scrolling down not working #12

Open
ghost opened this issue Feb 3, 2015 · 11 comments
Open

Wordpress scrolling down not working #12

ghost opened this issue Feb 3, 2015 · 11 comments

Comments

@ghost
Copy link

ghost commented Feb 3, 2015

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
Copy link

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
Copy link
Owner

simov commented Feb 8, 2015

Thanks for the tip @sbanas-soi 👍

@itrcz
Copy link

itrcz commented Mar 27, 2015

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

@simov
Copy link
Owner

simov commented Mar 27, 2015

Thanks for the tip @jleed 👍

@AdsonCicilioti
Copy link

@jleed how i set in the js code?

@ststaynov
Copy link

@jleed please give an example :)

@brachycera
Copy link

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
Copy link

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
Copy link

frolant commented Sep 27, 2017

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

@rish30990
Copy link

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
Copy link

Vermasiddhant89 commented Dec 12, 2018

Get rid of the following line:

<script type='text/javascript' src='http://kimlo.thenashy.com/wp-content/themes/zerif-lite/js/jquery.scrollTo.min.js?ver=20120206'></script>

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

<script type='text/javascript' src='http://kimlo.thenashy.com/wp-content/themes/zerif-lite/js/jquery.nav.js?ver=20120206'></script> <script type='text/javascript' src='http://kimlo.thenashy.com/wp-content/themes/zerif-lite/js/smoothscroll.js?ver=20120206'></script> <script type='text/javascript' src='http://kimlo.thenashy.com/wp-content/themes/zerif-lite/js/scrollReveal.js?ver=20120206'></script>

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants