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

Reinit dragscroll #40

Open
Cartmaniac opened this issue Feb 28, 2018 · 2 comments
Open

Reinit dragscroll #40

Cartmaniac opened this issue Feb 28, 2018 · 2 comments

Comments

@Cartmaniac
Copy link

Hey,

I have some elements that I create with jQuery and since they are created after the page loads, ".dragscroll" doesn't work. Is there a way to reinit the elements?

@asvd
Copy link
Owner

asvd commented Feb 28, 2018

from the readme:

If you add or remove the dragscroll class dynamically, invoke dragscroll.reset() to update the listeners.

does it work?

@Cartmaniac
Copy link
Author

Thanks. Don't know how I missed that :)

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