I’m using Copilot to create a flowchart canvas using VueFlow. It looks like it has no problem adding nodes, but no matter how much I prompt it, copilot has no idea how to make nodes draggable… even though it tells me that it has. I’m basically burning through tokens at this point.
I’m at the point where I need to figure out how to make the nodes draggable on my own, or make this part of the project in Lovable… which nailed the entire thing on the first prompt.
Is there a way that I can make an element Draggable in WeWeb without coding it? Or has anyone found a way to get Copilot to actually do what it says its doing?
I did something like this for a draggable calculator. I decided not to use WeWeb’s events, because it’s not the native event. I’m using a WeWeb’s variable though.
Where would you put this code? I’ve figured out how update the position of the element using the mouse position but not in realtime, your code makes sense, I’m just not sure where it goes, is it in a formula under the logic tab¡
It depends on your setup a lot. I for example have an onMounted workflow with a JS action in it. I also have an unmount event to detach the listeners when the element gets conditionally unrendered to avoid memory leaks. It really depends on whatever setup you’re running.