tune scrolling logic