Skip to content

Commit

Permalink
check opacity for visible elements
Browse files Browse the repository at this point in the history
  • Loading branch information
brookhong committed Mar 9, 2025
1 parent 1498281 commit 67f32b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content_scripts/common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function scrollIntoViewIfNeeded(elm, ignoreSize) {
function isElementDrawn(e, rect) {
var min = isEditable(e) ? 1 : 4;
rect = rect || e.getBoundingClientRect();
return rect.width > min && rect.height > min;
return rect.width > min && rect.height > min && parseFloat(getComputedStyle(e).opacity) > 0.1;
}

/**
Expand Down

0 comments on commit 67f32b2

Please sign in to comment.