Archived
1
0

try fixing drag to move

This commit is contained in:
Jeff Becker
2016-04-30 13:26:42 -04:00
parent a1142aa670
commit 480c40ce4f
2 changed files with 3 additions and 2 deletions

View File

@@ -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();
}
}