I’m making an app where dropping a card on top of a shape object needs some functions to be called, so I want to catch when cards are moved, I tried using “WIDGETS_TRANSFORMATION_UPDATED” but it doesn’t give coordinates, I’ve tried getting the common ‘dragend’ on document and it did no go well either, any suggestions would be greatly appreciated.
Answered
How to get drag and drop event to get coordinates
Best answer by Falk Kühnel
After the event
event.data
you have to get the drop information for each item afterwards by id:
await miro.board.widgets.get({id: "3074457347524474470"})
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.