-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Removing nicescroll from element #51
Comments
When you change position of a div with nicescroll you have to force refresh of rails position. Have a look at shuffle example, you can find some advice to manage movable divs: |
You were right, combination of I guess there is no need for real removing of NiceScroll from an element, so I close this issue. Thank you for your great work! ;-) |
Hi, |
@rbrickyboy I think $("#scrollingDiv").getNiceScroll().remove(); is better. Works for me. |
I ran into some issues while trying to implement horizontally sliding navigation. That means there are side-by-side divs where only one is visible at the time and each one of them is scrollable using Nicescroll.
But when a div slides off the visible area, its scroll track still stays in the place.
I found
nicescroll.remove()
method, but it doesn't seem to do the job.I even tried basic scenario where I initialized the nicescroll on an element and then removed it, but the track still stayed in the DOM and visible.
Could this be a mistake in my code? Is
remove
even supposed to be called from outside?And most importantly - is there a way to completely remove all additional elements, bindings and all from an element?
The text was updated successfully, but these errors were encountered: