From ca2da8135f76673f42b5d80cfd84263fbd6b68b8 Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Tue, 26 Sep 2023 15:46:16 -0400 Subject: [PATCH] Fix #7645: Explicitly end interactive tab reorder before starting again (#8161) --- .../Frontend/Browser/Tabs/TabBar/TabsBarViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Brave/Frontend/Browser/Tabs/TabBar/TabsBarViewController.swift b/Sources/Brave/Frontend/Browser/Tabs/TabBar/TabsBarViewController.swift index 6615add704a..dd8f413f619 100644 --- a/Sources/Brave/Frontend/Browser/Tabs/TabBar/TabsBarViewController.swift +++ b/Sources/Brave/Frontend/Browser/Tabs/TabBar/TabsBarViewController.swift @@ -276,6 +276,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) }