onScreen
onScreen copied to clipboard
It doesn't seem that the check function works when the container is not window
The check
function should call inContainer
instead of inViewport
.
you're totally right