sketch icon indicating copy to clipboard operation
sketch copied to clipboard

Gravity of zoomable images

Open saket opened this issue 1 year ago • 2 comments

When an image is zoomed, SketchZoomImageView's current behavior is to scale on all sides which makes sense for most image viewer apps where the image is displayed at the center. Will it be possible to customize this behavior by taking in a "gravity"? I am trying to display an image at the top of the screen. If the image is zoomed, I'd like it to scale up towards the bottom edge of the image until it reaches its maximum height.

saket avatar Jul 20 '22 20:07 saket

I can't imagine such a usage scenario, please describe in more detail why there is such a requirement displayed at the top

panpf avatar Jul 28 '22 10:07 panpf

I have a screen that shows an image as its header. The image can be zoomed, but its height remains fixed.

saket avatar Sep 01 '22 17:09 saket

Closing in favor of telephoto.

saket avatar Jun 21 '23 18:06 saket