Scale lines and infinite scroll

Fixed display of vertical and horizontal scale lines.
Added infinite scroll functionality.