Skip to content

Commit

Permalink
Fix brave/brave-ios#7645: Explicitly end interactive tab reorder befo…
Browse files Browse the repository at this point in the history
…re starting again (brave/brave-ios#8161)
  • Loading branch information
kylehickinson committed Sep 26, 2023
1 parent 97e1adc commit 7d5c5fd
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 7d5c5fd

Please sign in to comment.