diff --git a/4chan_x.user.js b/4chan_x.user.js index 821400d70..8c82cdb48 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -320,7 +320,7 @@ hover = function(e) { var clientX, height, top; height = this.el.offsetHeight; - top = e.clientY - height / 2; + top = e.clientY - 120; this.style.top = this.clientHeight <= height || top <= 0 ? '0px' : top + height >= this.clientHeight ? this.clientHeight - height + 'px' : top + 'px'; clientX = e.clientX; if (clientX <= this.clientWidth - 400) { diff --git a/lib/ui.coffee b/lib/ui.coffee index 1dd7eecc9..9380bd3fa 100644 --- a/lib/ui.coffee +++ b/lib/ui.coffee @@ -99,7 +99,7 @@ UI = (-> root.addEventListener 'mousemove', o.hover, false hover = (e) -> height = @el.offsetHeight - top = e.clientY - height / 2 + top = e.clientY - 120 @style.top = if @clientHeight <= height or top <= 0 '0px'