Merge pull request 'android seems to report width of video fractionally higher than width of screen, round down value to fix #38' (#39) from fix-assemblies-android into main
Reviewed-on: 0x2620/aab21#39
This commit is contained in:
commit
0519264d5b
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ function isElementInViewport (el) {
|
||||||
rect.top >= 0 &&
|
rect.top >= 0 &&
|
||||||
rect.left >= 0 &&
|
rect.left >= 0 &&
|
||||||
rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /* or $(window).height() */
|
rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /* or $(window).height() */
|
||||||
rect.right <= (window.innerWidth || document.documentElement.clientWidth) /* or $(window).width() */
|
Math.floor(rect.right) <= (window.innerWidth || document.documentElement.clientWidth) /* or $(window).width() */
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue