Fixed calculation of pagers last page origin when overlap

commit_hash:9f28a9a4e82d9f70c74df04cc4ac7c8d5d041bb9
This commit is contained in:
i-ts
2024-10-07 14:43:04 +03:00
parent 3c5aa5938e
commit dc6fe2d7b0
3 changed files with 3 additions and 1 deletions
@@ -125,7 +125,9 @@ extension GalleryViewModel {
let origins = frames.enumerated().map { index, frame -> CGFloat in
guard index > 0 else { return 0.0 }
guard index != frames.count - 1 else {
if index == frames.count - 1,
transformation?.style != .overlap {
return contentSize - bound
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 49 KiB