update scrolling to reduce lag on mobile devices