Having the quote previews top position flicker is quite annoying actually.

This commit is contained in:
Nicolas Stepien 2012-09-26 21:25:59 +02:00
parent 4a2a750d62
commit 3650eb2af7
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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'