jScrollPane
jScrollPane copied to clipboard
Scroll bind function problem
Hi. I am having a problem with the scroll function.
I am developing the following event: When you click on a link contained in a load div but before the JScrollPane without defined content and configuration is as follows:
ulList.jScrollPane ({ showArrows: false, mouseWheelSpeed: 20, autoReinitialise: true, stickToBottom: true, maintainPosition: true });
After loading the content I call this function to scroll down Toggles between the
ulList.on ('jsp-initialised', function () { $ (This) .data ('jsp') scrollToBottom ().; });
Then I have the function:
ulList.bind ('jsp-scroll-y', function (event, scrollPositionY, isAtTop, isAtBottom) {
// Code here });
The problem is that when the scroll is iniacializa has no content and then charge you when the content and move it down I take the event as if scroll top.
If I can help thank you very much
Is this still issue?