pinchzoom icon indicating copy to clipboard operation
pinchzoom copied to clipboard

Going under zoom factor 1, jumps back to zoom factor 1

Open Funnybanny opened this issue 2 years ago • 1 comments

This seems to be a built in feature, so I dont think this is an issue. Im curious why does that happen. Based on my debugging all calculations are correct, but when event ends the last zoomUpdate puts it back to zoomfactor 1.

My question is why does zooming out disallowed, also how to turn it off?

Funnybanny avatar Mar 02 '23 08:03 Funnybanny

@Funnybanny I think you can use the zoomOutFactor option for this. By default it's set to 1.3, which means the zoom will be restored to 1 if the current zoom is below 1.3.

I think it's actually necessary to enable this if you want the element to get re-centered when zooming out.

milansimek avatar May 09 '23 19:05 milansimek