From ae45d3e5165c371113f278e1df9dfae5a06dd01f Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 3 May 2016 15:02:01 -0400 Subject: [PATCH] try fixing drag and drop --- contrib/js/reply.js | 6 +----- contrib/static/nntpchan.js | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/contrib/js/reply.js b/contrib/js/reply.js index b89a7d4..9d426d6 100644 --- a/contrib/js/reply.js +++ b/contrib/js/reply.js @@ -382,11 +382,7 @@ function init(prefix) { // position replyto widget var e = rpl.elem; var mouseDownX, mouseDownY; - - var ox = document.body.clientWidth - 50; - var oy = 10; - rpl.moveTo(ox, oy); - + var $dragging = null; $(rpl.elem).on("mousemove", function(ev) { diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index f36308f..f979594 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -691,7 +691,7 @@ parent.appendChild(wrapper);parent.backlink=false;},function(msg){var wrapper=do parent.backlink=true;}};parent.backlink=true;} function inject_hover_for_element(elem){var elems=elem.getElementsByClassName("backlink");var ls=[];var l=elems.length;for(var idx=0;idx