use a different way to detect if the result section is in the viewport to show/hide the list