openspacelabs / react-native-zoomable-view

A view component for react-native with pinch to zoom, tap to move and double tap to zoom capability.
MIT License
205 stars 57 forks source link

Disable Pan move like zoomEnabled #84

Closed BrunoBross closed 7 months ago

BrunoBross commented 8 months ago

Its possible to disable Pan gesture like zoomEnabled?

raulTeoSalinas commented 7 months ago

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 commented 7 months ago

@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