Implemented pinch-to-zoom and scrolling.