use round() instead of trunc() when finding the centre of the screen for scrolling...