Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #7645: Explicitly end interactive tab reorder before starting aga…
Browse files Browse the repository at this point in the history
…in (#8161)
  • Loading branch information
kylehickinson authored Sep 26, 2023
1 parent d0bfa76 commit 2c5a675
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ class TabsBarViewController: UIViewController {
break
}

// _UIDragSnappingFeedbackGenerator will occasionally throw an exception that its "already being
// interacted with" without explicitly ending the interactive movement on begin
collectionView.endInteractiveMovement()
Task.delayed(bySeconds: 0.1) { @MainActor in
self.collectionView.beginInteractiveMovementForItem(at: selectedIndexPath)
}
Expand Down

0 comments on commit 2c5a675

Please sign in to comment.