dragscroll icon indicating copy to clipboard operation
dragscroll copied to clipboard

Reinit dragscroll

Open Cartmaniac opened this issue 6 years ago • 2 comments

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?

Cartmaniac avatar Feb 28 '18 14:02 Cartmaniac

from the readme:

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

does it work?

asvd avatar Feb 28 '18 20:02 asvd

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

Cartmaniac avatar Mar 01 '18 06:03 Cartmaniac