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

Scroll bind function problem #333

Open
quevlu opened this issue Mar 29, 2016 · 1 comment
Open

Scroll bind function problem #333

quevlu opened this issue Mar 29, 2016 · 1 comment

Comments

@quevlu
Copy link

quevlu commented Mar 29, 2016

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

@illuusio
Copy link
Collaborator

Is this still issue?

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

No branches or pull requests

2 participants