From 11f096e1953bd79fe499a9e63053c0917e74abb0 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 30 Apr 2016 15:04:53 -0400 Subject: [PATCH] try fixing movement of reply box --- contrib/js/backlink.js | 2 +- contrib/static/nntpchan.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/js/backlink.js b/contrib/js/backlink.js index f0377f4..e3c6b6e 100644 --- a/contrib/js/backlink.js +++ b/contrib/js/backlink.js @@ -279,7 +279,7 @@ function init(prefix) { e.addEventListener("dragend", function(ev) { var x = originalX + ev.clientX - mouseDownX; var y = originalY + ev.clientY - mouseDownY; - x = x - screenLeft; + x = window.screenX - x; rpl.moveTo(x, y); originalX = x; originalY = y; diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 58e8f60..e6c9a34 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -38,7 +38,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