react-zoom-pan-pinch icon indicating copy to clipboard operation
react-zoom-pan-pinch copied to clipboard

pinch and pan

Open k2xl opened this issue 1 year ago • 3 comments

I'd like to be able to disable panning (unless it is done while pinching... for example while pinching to zoom).

k2xl avatar Sep 23 '23 01:09 k2xl

I'd like to be able to disable panning (unless it is done while pinching... for example while pinching to zoom).

Hey, I feel It is mentioned in their documentation you can see the available methods you can use

myselfprincee avatar Oct 09 '23 09:10 myselfprincee

I had a similar issue where when I would drag the image and let go of the left button on the mouse the image would just continue dragging but this solved the issue add panning velositiDisabled = true panning={{ velocityDisabled: true, }}

J0ssue6 avatar Nov 27 '23 13:11 J0ssue6

@k2xl I feel like you are talking about only panning the image while 2 fingers are down for a pinch zoom? If so, I am facing the same problem. Did you find a solution?

Shane-Geary avatar May 31 '24 16:05 Shane-Geary