diff --git a/contrib/js/nntpchan/reply.js b/contrib/js/nntpchan/reply.js index 32cca11..e7c3a79 100644 --- a/contrib/js/nntpchan/reply.js +++ b/contrib/js/nntpchan/reply.js @@ -253,8 +253,8 @@ function init(prefix) { $(rpl.elem).on("mousemove", function(ev) { if ($dragging) { - var x = ev.pageX, // - $(this).width() / 2, - y = ev.pageY; //- $(this).height() / 2; + var x = ev.pageX - $(this).width() / 2, + y = ev.pageY - $(this).height() / 2; $dragging.offset({ top: y, left: x