Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Initialize gallery boundary haptic state
  • Loading branch information
dasmfm committed Jun 15, 2026
commit a8f6975a97abcd66620d1ac055df4e10b25fceea
3 changes: 3 additions & 0 deletions submodules/GalleryUI/Sources/GalleryController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@ public class GalleryController: ViewController, StandalonePresentableController,
}

self.galleryNode.pager.replaceItems(items, centralItemIndex: centralItemIndex)
if let centralItemIndex = centralItemIndex, centralItemIndex < self.entries.count {
self.currentBoundaryId = galleryEntryBoundaryId(self.entries[centralItemIndex])
}

self.galleryNode.pager.centralItemIndexUpdated = { [weak self] index in
if let strongSelf = self {
Expand Down