mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
Fixed calculation of pagers last page origin when overlap
commit_hash:9f28a9a4e82d9f70c74df04cc4ac7c8d5d041bb9
This commit is contained in:
@@ -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 |
Reference in New Issue
Block a user