SMScrollView icon indicating copy to clipboard operation
SMScrollView copied to clipboard

possibility to set minimumZoomScale > 1.0

Open ivovdry opened this issue 10 years ago • 2 comments

i'm calculating minScale manually to fit small image

ivovdry avatar Feb 26 '15 11:02 ivovdry

Hi @ivov-dry,

Are you asking to scale up and stretch a small image to fit the scrollView.bounds, but still be able to zoom-out to a scale of 1.0? Or do you want the minimumZoomScale to be set to a value larger than 1.0, such that user won't be able to zoom-out to a scale of 1.0?

I am thinking of adding a boolean property (e.g.: stretchToFit), that if set, will stretch and fit smaller images to scrollView bounds but would still allow zooming out to 1.0 scale. Such that minimumZoomScale will never be larger than 1.0.

Thank you for you feedback!

smnh avatar Mar 01 '15 16:03 smnh

Hi @smnh, I was thinking about stretching image where minimumZoomScale be > 1.0 (similar to Photos behaviour).

ivovdry avatar Mar 09 '15 11:03 ivovdry