Remove debug code from scroll optimizer and disable scroll optimization for tree controller (because it doesn't work there yet)