This commit is contained in:
Mayhem 2013-06-26 21:06:47 +02:00
parent fefc928385
commit f0504247c5

View File

@ -299,7 +299,12 @@ UI = do ->
$.on root, 'mousemove', o.hover
<% if (type === 'userscript') { %>
# Workaround for https://github.com/MayhemYDG/4chan-x/issues/377
o.workaround = -> o.hoverend() unless doc.contains root
o.workaround = (e) ->
node = e.target
while node
return if node is root
node = node.parentNode
o.hoverend()
$.on doc, 'mousemove', o.workaround
<% } %>
hover = (e) ->