added more conditions to mobile scrolling features