Truly fix #377.
This commit is contained in:
parent
fefc928385
commit
f0504247c5
@ -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) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user