Having the quote previews top position flicker is quite annoying actually.
This commit is contained in:
parent
4a2a750d62
commit
3650eb2af7
@ -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) {
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user