try fixing drag to move
This commit is contained in:
@@ -263,10 +263,11 @@ function init(prefix) {
|
||||
var e = rpl.elem;
|
||||
e.setAttribute("draggable", "true");
|
||||
e.ondragend = function(ev) {
|
||||
console.log(ev);
|
||||
var el = document.getElementById("postform_container");
|
||||
el.style.top = "" + ev.y;
|
||||
el.style.left = "" + ev.x;
|
||||
console.log(el);
|
||||
ev.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user