1
0
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:
gorhill 2014-07-13 20:33:33 -04:00
parent 5471839135
commit 632aadedae

View File

@ -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';
};
/******************************************************************************/