Well, that would explain the image preview jumping.

This commit is contained in:
ccd0 2014-09-16 17:47:24 -07:00
parent 26d6c8b6bf
commit 5e1b8a8f7c

View File

@ -310,6 +310,7 @@ UI = do ->
isImage: el.nodeName in ['IMG', 'VIDEO']
cb
endEvents
ready: false
latestEvent
clientHeight: doc.clientHeight
clientWidth: doc.clientWidth
@ -321,6 +322,7 @@ UI = do ->
$.asap ->
!el.parentNode or asapTest()
, ->
o.ready = true
o.hover o.latestEvent if el.parentNode
$.on root, endEvents, o.hoverend
@ -335,6 +337,7 @@ UI = do ->
hover = (e) ->
@latestEvent = e
return unless @ready
height = @el.offsetHeight
{clientX, clientY} = e