简体   繁体   中英

How to trigger jScrollPane scroll to bottom event

I have searched a lot, but couldnt find any thing that could help me. I need a javascript event that fires when the scrollbar has reached near bottom. I remember with out jScrollPane i used to do it with binding scroll event of the div and inside the event it does some calculation with scrolltop and height etc to see if the scrolling has been done to/near bottom. I cant find any similar thing in Jscrollpane's scroll bar. I found a couple of similar questions, but they were in Java.

there is a page describing those events here

 $('.scroll-pane').
    bind('jsp-scroll-y', function(event, scrollPositionY, isAtTop, isAtBottom) {
         // some basic math here            
    });

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM