From 568e9147dd92aa3ca86d18a3ffa973006f09f28f Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Fri, 13 Mar 2026 08:16:01 +0100 Subject: [PATCH] dont jump scroll position in quick tab switcher --- .../widgets/browser_modules/bottom_app_bar.dart | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart b/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart index e7bd5820..1ba65acb 100644 --- a/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart +++ b/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart @@ -424,7 +424,6 @@ class QuickTabSwitcher extends HookConsumerWidget { @override Widget build(BuildContext context, WidgetRef ref) { - final disableAnimations = MediaQuery.disableAnimationsOf(context); final showIsolatedTabUi = ref.watch( generalSettingsWithDefaultsProvider.select((s) => s.showIsolatedTabUi), ); @@ -498,17 +497,6 @@ class QuickTabSwitcher extends HookConsumerWidget { if (!item.isHistory && item.isActive) { return; } - - Future? animation; - if (disableAnimations) { - chipScrollController.jumpTo(0); - } else { - animation = chipScrollController.animateTo( - 0, - duration: const Duration(milliseconds: 200), - curve: Curves.easeOutBack, - ); - } if (item.isHistory) { await ref .read(tabRepositoryProvider.notifier) @@ -516,7 +504,6 @@ class QuickTabSwitcher extends HookConsumerWidget { } else { await ref.read(tabRepositoryProvider.notifier).selectTab(item.id); } - await animation; }, itemWrapBuilder: (child, item) { if (item.isHistory) {