-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Option to disable moveable programmatically #178
Comments
Hello there @chbert, glad this is being used. I'm guessing the reason for this is because the This is on my part, i should have deferred FWIW, the workaround is to wait until the children have rendered and init / update |
@chbert @svelte-put/movable@2.0.1 should resolve the issue you've described. Please give it a try at your convenience and let me know. Thanks |
@vnphanquang thanks for the prompt reply! I tested it, but still have the same result. I will try to put together a REPL to reproduce it more easily. Make take a moment :-D |
Hi @vnphanquang, great work on svelte-put!
I'm trying to find a way to disable "moveable" in certain instances programmatically.
I have a moveable canvas and moveable nodes on them. I tried to use the ignore parameter (as described here), but since I load the nodes within another component, it does not seem to work in this case. So, when I move a node, the underlying canvas also moves. So I'm listening to nodes moving and, during this time, would need to disable the grid moveable.
Maybe there is a workaround for this without a disable option?
Thanks!
This is the HTML of the canvas component (the nodes are inside the Graph component and have the class "node"):
The text was updated successfully, but these errors were encountered: