-
-
Notifications
You must be signed in to change notification settings - Fork 131
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 option to specify scrollable element #2
Conversation
Thanks @greis! This is awesome and definitely needed - however my concern here is that we're relying on jQuery to figure out where on the page We need to safeguard this! My suggestion is that we:
We can probably do both by checking if scrollable is an |
Just pushed some changes to cover the suggestions you made. Also wrote some unit tests for it. What do you think? |
Yes!! This is awesome - and thankyou for writing tests! I've got a couple lil' tweaks - but we're pretty much there:
Thanks so much here @greis ! |
Done. I will leave it to you to update the README :) |
Add option to specify scrollable element
TY! |
The scrollable defaults to
window
if the option is not used.Usage: