Fix incorrect opacity check
This commit is contained in:
parent
9dc03f6d47
commit
820beb7c93
@ -359,7 +359,7 @@ function isElementTransparent(element) {
|
|||||||
}
|
}
|
||||||
const style = window.getComputedStyle(element);
|
const style = window.getComputedStyle(element);
|
||||||
return (
|
return (
|
||||||
parseFloat(style.opacity) < 0 ||
|
parseFloat(style.opacity) <= 0 ||
|
||||||
style.visibility === 'hidden' ||
|
style.visibility === 'hidden' ||
|
||||||
(style.backgroundImage === 'none' && isColorTransparent(style.backgroundColor))
|
(style.backgroundImage === 'none' && isColorTransparent(style.backgroundColor))
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user