Revert "Well, that would explain the image preview jumping."
This reverts commit 5e1b8a8f7c05b5788fb66aa8a64986043c0c630f.
This commit is contained in:
parent
7221e1b2de
commit
41b72706f6
@ -310,7 +310,6 @@ UI = do ->
|
|||||||
isImage: el.nodeName in ['IMG', 'VIDEO']
|
isImage: el.nodeName in ['IMG', 'VIDEO']
|
||||||
cb
|
cb
|
||||||
endEvents
|
endEvents
|
||||||
ready: false
|
|
||||||
latestEvent
|
latestEvent
|
||||||
clientHeight: doc.clientHeight
|
clientHeight: doc.clientHeight
|
||||||
clientWidth: doc.clientWidth
|
clientWidth: doc.clientWidth
|
||||||
@ -322,7 +321,6 @@ UI = do ->
|
|||||||
$.asap ->
|
$.asap ->
|
||||||
!el.parentNode or asapTest()
|
!el.parentNode or asapTest()
|
||||||
, ->
|
, ->
|
||||||
o.ready = true
|
|
||||||
o.hover o.latestEvent if el.parentNode
|
o.hover o.latestEvent if el.parentNode
|
||||||
|
|
||||||
$.on root, endEvents, o.hoverend
|
$.on root, endEvents, o.hoverend
|
||||||
@ -337,7 +335,6 @@ UI = do ->
|
|||||||
|
|
||||||
hover = (e) ->
|
hover = (e) ->
|
||||||
@latestEvent = e
|
@latestEvent = e
|
||||||
return unless @ready
|
|
||||||
height = @el.offsetHeight
|
height = @el.offsetHeight
|
||||||
{clientX, clientY} = e
|
{clientX, clientY} = e
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user