hopefully fixed the scrolling algorithm once and for all (don't hold your breath)