mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fix for pagination getting stuck when swiping preview items
This commit is contained in:
@@ -33,7 +33,14 @@ class TimelineMediaPreviewDataSource: NSObject, QLPreviewControllerDataSource {
|
||||
private var backwardPadding: Int
|
||||
private var forwardPadding: Int
|
||||
|
||||
var paginationState: TimelinePaginationState
|
||||
/// Reaching the end of the timeline changes which placeholder an index shows, so a change
|
||||
/// needs to be published too, not only the arrival of new items.
|
||||
var paginationState: TimelinePaginationState {
|
||||
didSet {
|
||||
guard paginationState != oldValue else { return }
|
||||
previewItemsPaginationPublisher.send()
|
||||
}
|
||||
}
|
||||
|
||||
/// The gallery attachments to include, so that a gallery only contributes the media being browsed.
|
||||
private let allowedGalleryItemTypes: [TimelineAllowedGalleryItemType]?
|
||||
|
||||
Reference in New Issue
Block a user