diff --git a/lib/src/widgets/pgn.dart b/lib/src/widgets/pgn.dart index 4c39e43570..1192741790 100644 --- a/lib/src/widgets/pgn.dart +++ b/lib/src/widgets/pgn.dart @@ -145,15 +145,20 @@ class _DebouncedPgnTreeViewState extends ConsumerState { super.initState(); pathToCurrentMove = widget.currentPath; pathToBroadcastLiveMove = widget.broadcastLivePath; - WidgetsBinding.instance.addPostFrameCallback((_) { - if (currentMoveKey.currentContext != null) { - Scrollable.ensureVisible( - currentMoveKey.currentContext!, - alignment: 0.5, - alignmentPolicy: ScrollPositionAlignmentPolicy.keepVisibleAtEnd, - ); - } - }); + + // TODO The scroll conflicts with the tab animation and skips it + // so it is commented until a solution is found to keep both the + // tab animation and the automatic scroll to the current move + // + // WidgetsBinding.instance.addPostFrameCallback((_) { + // if (currentMoveKey.currentContext != null) { + // Scrollable.ensureVisible( + // currentMoveKey.currentContext!, + // alignment: 0.5, + // alignmentPolicy: ScrollPositionAlignmentPolicy.keepVisibleAtEnd, + // ); + // } + // }); } @override