Archived
1
0
This commit is contained in:
Jeff
2016-05-03 14:42:53 -04:00
parent bb748f9a74
commit 2705a111c6
2 changed files with 2 additions and 13 deletions

View File

@@ -392,23 +392,12 @@ function init(prefix) {
e.addEventListener("drag", function(ev) {
if(ev.shiftKey) {
rpl.translate(ev.offsetX, ev.offsetY);
ev.preventDefault();
} else {
ev.preventDefault();
}
}, false);
e.addEventListener("dragend", function(ev) {
return;
var rpl = getReplyTo();
console.log(mouseDownX, mouseDownY, rpl);
var ox = rpl.getX();
var oy = rpl.getY();
var dx = ox + ev.screenX - mouseDownX;
var dy = oy + ev.screenY - mouseDownY;
console.log(ox, oy, dx, dy);
rpl.translate(dx, dy);
}, false);
// add replyto post handlers
e = document.getElementById("postform_submit");
var postit = function() {