From f6576aa8991c1ab7e79fd34864f643bc17ef0878 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 3 May 2016 13:16:18 -0400 Subject: [PATCH] try fix --- contrib/js/reply.js | 4 ++-- contrib/static/nntpchan.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/js/reply.js b/contrib/js/reply.js index eae4f90..0be8626 100644 --- a/contrib/js/reply.js +++ b/contrib/js/reply.js @@ -372,8 +372,8 @@ function init(prefix) { }, false); e.addEventListener("dragend", function(ev) { - var x = originalX + ( ev.clientX - mouseDownX ) - ev.offsetX; - var y = originalY + ( ev.clientY - mouseDownY ) - ev.offsetY; + var x = originalX + ev.clientX - ( mouseDownX - ev.offsetX ); + var y = originalY + ev.clientY - ( mouseDownY - ev.offsetY ); //x -= window.screenLeft; //y -= window.screenTop; rpl.moveTo(x, y); diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 50b0a79..ee53d5a 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -81,7 +81,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