Can these two variables be collapsed back into just one, "autoScroll"? All of the other logic makes them identical all the time.