Skip to content

Commit 67f32b2

Browse files
committed
check opacity for visible elements
1 parent 1498281 commit 67f32b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content_scripts/common/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ function scrollIntoViewIfNeeded(elm, ignoreSize) {
279279
function isElementDrawn(e, rect) {
280280
var min = isEditable(e) ? 1 : 4;
281281
rect = rect || e.getBoundingClientRect();
282-
return rect.width > min && rect.height > min;
282+
return rect.width > min && rect.height > min && parseFloat(getComputedStyle(e).opacity) > 0.1;
283283
}
284284

285285
/**

0 commit comments

Comments
 (0)