Tweaked scrolling selection so that it now looks for the nearest item to the centre
Debug cleanup