From 9aca55ec71548daebf870d7df06e5e2c2c915525 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 3 May 2016 14:08:58 -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 0e10977..af0ef0e 100644 --- a/contrib/js/reply.js +++ b/contrib/js/reply.js @@ -379,16 +379,16 @@ function init(prefix) { e.addEventListener("dragstart", function(ev) { console.log(ev); - mouseDownX = ev.screenX; - mouseDownY = ev.screenY; + mouseDownX = ev.clientX; + mouseDownY = ev.clientY; if(!ev.shiftKey) { ev.preventDefault(); } }, false); e.addEventListener("dragend", function(ev) { - var dx = ox + ev.screenX - mouseDownX; - var dy = oy + ev.screenY - mouseDownY; + var dx = ox + ev.clientX - mouseDownX; + var dy = oy + ev.clientY - mouseDownY; console.log(ox, oy, dx, dy); rpl.translate(dx, dy); diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 1167eee..e7ced33 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -82,7 +82,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