add scroll top scroll direction flag