     }
     
     public func scrollViewDidZoom(_ scrollView: UIScrollView) {
-        self._updateContentPosition(animated: false)
+        self._adjustContentPosition()
         self.delegate?.zoomed(to: scrollView.zoomScale, in: self)
     }
 }


// MARK: Update Content Position
private extension ZoomView {
    func _updateContentPosition(animated: Bool) {
        guard self.centerHorizontally || self.centerVertically else {
            return
        }

        let scrollView: UIScrollView = self._scrollView
        let contentView: UIView = self._contentView
        
        var adjustHorizontalPosition: () -> Void = {}
        if self.centerHorizontally {
            adjustHorizontalPosition =
            (contentView.width < scrollView.width) ?
                contentView.centerHInSuperview :
                { contentView.left = 0 }
        }
        
        var adjustVerticalPosition: () -> Void = {}
        if self.centerVertically {
            adjustVerticalPosition =
            (contentView.height < scrollView.height) ?
                contentView.centerVInSuperview :
                { contentView.top = 0 }
        }
        
        adjustHorizontalPosition()
        adjustVerticalPosition()
    }
}

