diff --git a/README.md b/README.md index 46e3b23..f4915ef 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ const CroppedImage = ({ image }) => { onZoomChange={onZoomChange} onMediaLoaded={mediaSize => { // Adapt zoom based on media size to fit max height - setZoom(CONTAINER_HEIGHT / mediaSize.naturalHeight) + onZoomChange(CONTAINER_HEIGHT / mediaSize.naturalHeight) }} /> )