I have lots of cells out side of the screen, and while dragging, when I drag one cell to the bottom of the screen, the UICollectionView cannot scroll slowly to show more cells.
However, the demo can achieve so. I am not sure what I missed?
I looked at the code, it's related to private func beginScrollIfNeeded()
But I don't know why mine don't trigger the scroll, it goes to
else {
self.invalidateDisplayLink()
}
And I have no idea what's the logic while calculating fakeCellTopEdge <= offset + paddingTop + trigerInsetTop and fakeCellEndEdge >= offset + length - paddingEnd - trigerInsetEnd
I have lots of cells out side of the screen, and while dragging, when I drag one cell to the bottom of the screen, the UICollectionView cannot scroll slowly to show more cells.
However, the demo can achieve so. I am not sure what I missed?
I looked at the code, it's related to
private func beginScrollIfNeeded()
But I don't know why mine don't trigger the scroll, it goes to
And I have no idea what's the logic while calculating
fakeCellTopEdge <= offset + paddingTop + trigerInsetTop
andfakeCellEndEdge >= offset + length - paddingEnd - trigerInsetEnd