-
Notifications
You must be signed in to change notification settings - Fork 40
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
drop event and default options #13
Comments
Hi @GKatsarov! Thanks for feedback!
|
Yeah, for the first issue the problem is another. So, I will give a more detailed example, I've seen similar libraries in the past, for example, Im sure you know jQuery Draggable + Droppable library. Just so u can make the connection, I will give u an example from there. So in our/your 😆 library, we have
Just to clarify, I'm dragging elements between different containers on an improvised "stage", in which I need to know the container which I currently dropped the element, so I can move the dragged element inside the html to the certain container. That is impossible for me for now. I've been looking into the library to make my own solution but nothing so far. So for an example, I have an element in cont1, I do the dragging, and I drop the element to the "cont2", as I wrote, to the right, in the following example.
After I drop it, I need to catch the container, so I can move the "physical" element in the html, as in the example. I can move the element myself, as long as I know the container.
This is the final output I need to do. I hope I cleared the problem I'm facing. Im open for any advice. Thanks in advance! |
@GKatsarov, okay, I will take a look the examples and think about how it can/cannot be useful in most cases. |
Hi, Karen.
First of all, amazing work with that project. I love it, I'm currently using it (or the most part of it) for a big project of my own. I faced two difficulties so far, which I wanted to discuss with you.
On the drop event, the drop container doesn't exist, as an argument to the drop function, so I cannot actually catch where I'm dropping a certain element to. It would be great, if such an argument exists, so for example you can move an element between two containers.
I cannot seem to find a good solution to removing one of the three options (drag,resize,rotate) as a default behavior when I initialize the library. For example, if I want to use only resize and rotate, it would be great, if in the options I can tell drag:false or something similar, so I do not get the whole functionality. I can simulate on the
drag event - return false
but still I don't think that is the correct way things should go.Again I wanted to say, everything is great and I see that you have made wonders with this library! Good luck!
The text was updated successfully, but these errors were encountered: