retyui / react-quick-pinch-zoom

A react component that providing multi-touch gestures for zooming and dragging on any DOM element.
https://react-quick-pinch-zoom.netlify.app/
310 stars 47 forks source link

ZoomOut lower than 100% is not working #86

Open GregSzczesniak opened 11 months ago

GregSzczesniak commented 11 months ago

Is there any way to let images zooming out lower than 100%? Here on the example page no images can be zoom out to be smaller than it's full size.

https://react-quick-pinch-zoom.netlify.app/

It looks like minZoom prop does not really let images be smaller - they just bouncing if you try to zoom it out, and return to 100% scale.

retyui commented 11 months ago

you can use paddings:

<QuickPinchZoom
  verticalPadding={100}
  horizontalPadding={50}
/>
GregSzczesniak commented 11 months ago

@retyui this is not solution for this issue