Since iOS 14.1 does not fix it, I am sharing a work around solution that I am using.
create a boolean flag and set orthogonalScrollingBehavior as following:
orthogonalScrollingBehavior = flag ? .continuousGroupLeadingBoundary :	.groupPagingCentered
2. call scrollToItem like this:
flag = true
collectionView.collectionViewLayout.invalidateLayout()
collectionView.scrollToItem(at: indexPath, at: .centeredHorizontally, animated: false)
flag = false
collectionView.collectionViewLayout.invalidateLayout()
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: