Fix incorrect opacity check

This commit is contained in:
toasted-nutbread 2019-11-25 21:04:34 -05:00
parent 9dc03f6d47
commit 820beb7c93

View File

@ -359,7 +359,7 @@ function isElementTransparent(element) {
}
const style = window.getComputedStyle(element);
return (
parseFloat(style.opacity) < 0 ||
parseFloat(style.opacity) <= 0 ||
style.visibility === 'hidden' ||
(style.backgroundImage === 'none' && isColorTransparent(style.backgroundColor))
);