Skip to content
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

Open
HarryCamigla opened this issue Dec 18, 2020 · 1 comment
Open

Initial zoom value and pinch to zoom bug #54

HarryCamigla opened this issue Dec 18, 2020 · 1 comment
Labels
more-info-needed Not enough information to reproduce or fix

Comments

@HarryCamigla
Copy link

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,
};

@SimonErich
Copy link
Contributor

@HarryCamigla sorry for taking so long to respond to this.
I could not reproduce this with the latest version. Could you maybe check if the problem still persists?
If yes: please provide a small example of the way you implement the component.
Do you have minZoom set to a number smaller than your intiialZoom ?

@SimonErich SimonErich added the more-info-needed Not enough information to reproduce or fix label Jun 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
more-info-needed Not enough information to reproduce or fix
Projects
None yet
Development

No branches or pull requests

2 participants