mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 18:19:38 +02:00
this makes more sense
This commit is contained in:
parent
5471839135
commit
632aadedae
@ -573,13 +573,13 @@ var onSvgHovered = function(ev) {
|
||||
return;
|
||||
}
|
||||
|
||||
svgRoot.style.display = 'none';
|
||||
svgRoot.style.pointerEvents = 'none';
|
||||
var elem = document.elementFromPoint(ev.clientX, ev.clientY);
|
||||
if ( elem == document.body || elem === document.documentElement ) {
|
||||
elem = null;
|
||||
}
|
||||
highlightElements(elem ? [elem] : []);
|
||||
svgRoot.style.display = '';
|
||||
svgRoot.style.pointerEvents = 'auto';
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user