Adding scroll listener for mobile devices