Simplify #377 fix.
This commit is contained in:
parent
fb6573dd3e
commit
d1d2149258
@ -299,12 +299,7 @@ UI = do ->
|
|||||||
$.on root, 'mousemove', o.hover
|
$.on root, 'mousemove', o.hover
|
||||||
<% if (type === 'userscript') { %>
|
<% if (type === 'userscript') { %>
|
||||||
# Workaround for https://github.com/MayhemYDG/4chan-x/issues/377
|
# Workaround for https://github.com/MayhemYDG/4chan-x/issues/377
|
||||||
o.workaround = (e) ->
|
o.workaround = (e) -> o.hoverend() unless root.contains e.target
|
||||||
node = e.target
|
|
||||||
while node
|
|
||||||
return if node is root
|
|
||||||
node = node.parentNode
|
|
||||||
o.hoverend()
|
|
||||||
$.on doc, 'mousemove', o.workaround
|
$.on doc, 'mousemove', o.workaround
|
||||||
<% } %>
|
<% } %>
|
||||||
hover = (e) ->
|
hover = (e) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user