Drag and drop in js
complete
L
LeKiwiTV
drag and drop works on the browser, but once in game does not work
HTML:
<ul id="proximity" ondrop="drop(event)" ondragover="dragover(event)"></ul>
JS:
function dragover(e) { e.preventDefault(); console.log("dragover"); }
function drop(e) { e.preventDefault(); console.log("drop"); }
var li = document.createElement('li'); li.setAttribute('draggable', true);
li.addEventListener("dragstart", function(e) { console.log("dragstart"); })
SyedMuhammad
This will be fixed in the next update
SyedMuhammad
complete
CEF has been implemented which supports this feature by default.
SyedMuhammad
Also, Ultralight's devs recommends using Draggabilly library while we don't have it
T
Timmy
That's an ultralight issue, it's independant from nanos and once it'll be available on UL i'm sure it'll be updated on nanos soon after
You can use JqueryUI meanwhile