js: Fix radix parameters.
This commit is contained in:
parent
d1e88c5e8d
commit
28ec7b4698
@ -75,8 +75,8 @@ function isElementInViewport(node) {
|
||||
if (computedStyle.visibility !== 'visible' ||
|
||||
computedStyle.display === 'none' ||
|
||||
node.hasAttribute('disabled') ||
|
||||
parseInt(computedStyle.width, '10') === 0 ||
|
||||
parseInt(computedStyle.height, '10') === 0) {
|
||||
parseInt(computedStyle.width, 10) === 0 ||
|
||||
parseInt(computedStyle.height, 10) === 0) {
|
||||
return null;
|
||||
}
|
||||
return boundingRect.top >= -20;
|
||||
|
Loading…
Reference in New Issue
Block a user