Correct comment visibility for _isElementOnscreen()