Handles the pinch-to-zoom gesture.
called when a pinch gesture is detected.
whether zooming is enabled.