Archived
1
0

try fixing drag to move

This commit is contained in:
Jeff Becker
2016-04-30 13:22:17 -04:00
parent d52a63586f
commit 531da63e7b
2 changed files with 3 additions and 2 deletions

View File

@@ -259,9 +259,10 @@ function init(prefix) {
inject_hover_for_element(document);
// dynamic post reply draggable
var rpl = getReplyTo();
rpl.setPrefix(prefix);
var e = rpl.elem;
e.setAttribute("draggable", "true");
e.ondragover = function(ev) {
e.ondrop = function(ev) {
e.style.top = ev.y;
e.style.left = ev.x;
}