         switch gestureRecognizer.state {
         case .began:
             self.startCapture()
+            self._panStartPoint = gestureRecognizer.location(in: self.view)
+            self._panStartZoom = CGFloat(NextLevel.shared.videoZoomFactor)
+            break
+        case .changed:
+            let newPoint = gestureRecognizer.location(in: self.view)
+            let scale = (self._panStartPoint.y / newPoint.y)
+            let newZoom = (scale * self._panStartZoom)
+            NextLevel.shared.videoZoomFactor = Float(newZoom)
             break
         case .ended:
             fallthrough

}

extension CameraViewController {
    
    internal func handlePanGestureRecognizer(_ gestureRecognizer: UIPinchGestureRecognizer) {
        switch gestureRecognizer.state {
        case .began:
            self.panStartPoint = gestureRecognizer.location(in: self.view)
            self.panStartZoom = CGFloat(NextLevel.shared.videoZoomFactor)
            break
        case .changed:
            let newPoint = gestureRecognizer.location(in: self.view)
            let scale = (self.panStartPoint.y / newPoint.y)
            let newZoom = (scale * self.panStartZoom)
            NextLevel.shared.videoZoomFactor = Float(newZoom)
            break
        default:
            break
        }
    }

    internal func handlePhotoTapGestureRecognizer(_ gestureRecognizer: UIGestureRecognizer) {
        // play system camera shutter sound

                focusTapGestureRecognizer.delegate = self
                focusTapGestureRecognizer.numberOfTapsRequired = 1
                gestureView.addGestureRecognizer(focusTapGestureRecognizer)
            }
        }
        
