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

scrolling position #38

Open
andy453011 opened this issue Dec 3, 2012 · 5 comments
Open

scrolling position #38

andy453011 opened this issue Dec 3, 2012 · 5 comments

Comments

@andy453011
Copy link

how can i find the scrolling position? when it reached eg 500px, i want to scroll top

@sualko
Copy link
Contributor

sualko commented Jan 18, 2013

$(selector).slimScroll().bind('slimscroll', function(e, pos){
    if(pos > 500)
       $(selector).slimScroll({ scrollTo: '0px' });
});

regards

@ghost
Copy link

ghost commented Nov 27, 2013

From version 1.0.9 onwards, this is the 'slimscrolling' event.

@ghost
Copy link

ghost commented Jul 17, 2014

But this binding of slimscroll' brings exception saying "Undefined is not a function"

@sfx101
Copy link

sfx101 commented Nov 13, 2014

You can also try $(selector).scrollTop();

@kamleshwebtech
Copy link

$(selector).slimScroll().bind('slimscroll', function(e, pos){
    if(pos > 500)
       $(selector).slimScroll({ scrollTo: '0px' });
});

regards

pos variable is returning 'top' not any integer value.

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

4 participants