Added clipping to zooming and scrolling