From bb748f9a744472042c6565df28bed884be095fb6 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 3 May 2016 14:41:51 -0400 Subject: [PATCH] try fix --- contrib/js/reply.js | 8 ++++---- contrib/static/nntpchan.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/js/reply.js b/contrib/js/reply.js index f8c1ba6..f94eec6 100644 --- a/contrib/js/reply.js +++ b/contrib/js/reply.js @@ -390,15 +390,15 @@ function init(prefix) { e.setAttribute("draggable", "true"); e.addEventListener("drag", function(ev) { - console.log(ev); - mouseDownX = ev.screenX; - mouseDownY = ev.screenY; - if(!ev.shiftKey) { + if(ev.shiftKey) { + rpl.translate(ev.offsetX, ev.offsetY); + } else { ev.preventDefault(); } }, false); e.addEventListener("dragend", function(ev) { + return; var rpl = getReplyTo(); console.log(mouseDownX, mouseDownY, rpl); var ox = rpl.getX(); diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index ac5a4f4..2e9067a 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -84,7 +84,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