photo_view icon indicating copy to clipboard operation
photo_view copied to clipboard

[BUG] Cannot rotate + zoom corners

Open beriaanirudh opened this issue 2 years ago • 3 comments

Describe the bug: Take a portrait photo. Lets name top-left most point A. Rotate photo 90-degrees anti-clockwise (make it lanscape), zoom-in, now try to look at zoomed point A. We won't be able to scroll the photo to the point to see it. PS: The same will happen for a bottom-left point in a landscape-photo.

To Reproduce: Attached a GIF. Any portrait photo will do.

Version: 0.14.0. This has always been the case.

My guess is that it is happening because the proportion of photo remains same, even when it is rotated. So, when pulling-area of the zoomed+rotated photo in one direction ends earlier than expected.

Peek 2022-07-16 12-46

beriaanirudh avatar Jul 16 '22 07:07 beriaanirudh

@beriaanirudh using enablePanAlways: true works

akshay-kapase avatar Dec 28 '22 16:12 akshay-kapase

This property doesn't exist for PhotoViewGalleryPageOptions.customChild. Is there any alternative property for gallery photos ?

bzkrterdm avatar May 10 '23 12:05 bzkrterdm

  • I have the same issue with PhotoViewGallery.builder(), and do not know how to set enablePanAlways: true for this case.
  • In addition, I think add options Slider zoom in/zoom out, mouse scroll detection, change rotate buttons, next/previous buttons are very helpful. (I am adding it myself with a stack)

duongtuancanhktpm avatar Apr 03 '24 09:04 duongtuancanhktpm