Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Pan move like zoomEnabled #84

Closed
BrunoBross opened this issue Feb 7, 2024 · 2 comments · Fixed by #87
Closed

Disable Pan move like zoomEnabled #84

BrunoBross opened this issue Feb 7, 2024 · 2 comments · Fixed by #87

Comments

@BrunoBross
Copy link

Its possible to disable Pan gesture like zoomEnabled?

@raulTeoSalinas
Copy link

Did you find an alternative? Im trying to disable pan too. It would be very helpful when dealing with other gesture handlers components inside ReactNativeZoomableView.

@BrunoBross
Copy link
Author

@raulTeoSalinas if you remove "this.zoomLevel === this.props.initialZoom" condition (there are two conditions) inside ReactNativeZoomableView (node_modules) and set disablePanOnInitialZoom={true} (component), the pan will be disabled but you will be able to zoom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants