remove now unneeded code

This commit is contained in:
Pfeil, Scott Robert 2020-07-09 11:40:23 -04:00
parent 600d9a977e
commit 4469387e4d

View File

@ -436,7 +436,6 @@ extension Carousel: UIScrollViewDelegate {
// Disable peaking when dragging.
dragging = true
guard !UIAccessibility.isVoiceOverRunning else { return }
showPeaking(false)
}
@ -444,7 +443,6 @@ extension Carousel: UIScrollViewDelegate {
public func scrollViewWillEndDragging(_ scrollView: UIScrollView, withVelocity velocity: CGPoint, targetContentOffset: UnsafeMutablePointer<CGPoint>) {
dragging = false
guard !UIAccessibility.isVoiceOverRunning else { return }
// This is for setting up smooth custom paging. (Since UICollectionView only handles paging based on collection view size and not cell size). Math requires that we are using UICollectionViewFlowLayout.
guard (model as? CarouselModel)?.paging == true,