no message

This commit is contained in:
Peter
2018-09-17 19:16:39 +01:00
parent e2fc5ace75
commit dd4ed9c23d
68 changed files with 2731 additions and 2626 deletions

View File

@@ -249,7 +249,7 @@ final class GalleryThumbnailContainerNode: ASDisplayNode, UIScrollViewDelegate {
if scrollView.isDragging || scrollView.isDecelerating {
let position = scrollView.contentInset.left + scrollView.contentOffset.x
let index = max(0, min(self.items.count, Int(round(position / (itemBaseSize.width + spacing)))))
let index = max(0, min(self.items.count - 1, Int(round(position / (itemBaseSize.width + spacing)))))
if let (currentCentralIndex, _) = self.centralIndexAndProgress, currentCentralIndex != index {
self.centralIndexAndProgress = (index, nil)