Use directive for scroll check