This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
Initial zoom value and pinch to zoom bug #54
Labels
more-info-needed
Not enough information to reproduce or fix
Found this bug when your initialZoom value is less than 1
The bug causes the zoom value to 1 during the first pinch gesture. In ReactNativeZoomableView.js fie in Line 32 you need to update as below
this.state = {
zoomLevel: props.initialZoom,
...initialState,
lastZoomLevel:props.initialZoom ? props.initialZoom : 1,
offsetX: props.initialOffsetX,
offsetY: props.initialOffsetY,
};
The text was updated successfully, but these errors were encountered: