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

add a per-listener latency settings #4

Closed
benoitpointet opened this issue Jan 21, 2014 · 2 comments
Closed

add a per-listener latency settings #4

benoitpointet opened this issue Jan 21, 2014 · 2 comments

Comments

@benoitpointet
Copy link

I afterall need it.

Take http://benoit.pointet.info/stuff/jquery-scrollsnap-plugin/

The ideal latency for whole doc scrolling is different than the one for the "colored areas".

That means I need to set latency per listener.

Thanks,
b.

@ssorallen
Copy link
Owner

Okay, I will take a look at your pull request again. Passing a data object per event listener is likely the way to go.

@ssorallen
Copy link
Owner

I added configuration data similar to your earlier pull request. You can supply per-element configuration by passing data when binding the events:

// Configure latency to 650ms for #scrolling-div
$("#scrolling-div").on("scrollstop", {latency: 650}, function() { ... });

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

2 participants