Archived
1
0
This commit is contained in:
Jeff
2016-05-03 14:33:41 -04:00
parent 914c69215e
commit b1ebd3826a
2 changed files with 3 additions and 4 deletions

View File

@@ -400,14 +400,13 @@ function init(prefix) {
e.addEventListener("dragend", function(ev) {
console.log(mouseDownX, mouseDownY);
var ox = rpl.getX();
var oy = rpl.getY();
var dx = ox + ev.screenX - mouseDownX;
var dy = oy + ev.screenY - mouseDownY;
var rpl = getReplyTo();
console.log(ox, oy, dx, dy);
rpl.translate(dx, dy);
ox = rpl.getX();
oy = rpl.getY();
console.log(ox, oy);
}, false);
// add replyto post handlers