Page 1 of 1

HTML Drag and Drop API

Posted: 17 January 2021, 13:30
by galehar
Hi,
My code (rftg) is using draggable, but it only works on Firefox. On Chrome and Edge, as soon as the card is dragged, it disappears. The studio doc suggests switching to direct html5 spec now. Do you know of a game available in studio which uses the Standard Drag'n Drop API, so that I can study how it integrates with the BGA framework?
Thanks.

Re: HTML Drag and Drop API

Posted: 17 January 2021, 13:39
by RicardoRix
wiki wrote:Draggable is the component that supports drug and drop,
That's drug and drop, something completely different...

/Sorry - couldn't resist.

Re: HTML Drag and Drop API

Posted: 17 January 2021, 13:44
by Tisaac
I'll do some testing this week on that, I will keep you updated but it seems pretty straightforward to use.

Re: HTML Drag and Drop API

Posted: 17 January 2021, 14:21
by RicardoRix
Once had problems with things disappearing during animations because I had some elements with css overflow: hidden