From ae0d012c0f4e9a0deb101cd23c56af8ffc14211f Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Sun, 13 Oct 2024 09:27:29 +0800 Subject: [PATCH] opt: reply2reply: jump to target --- lib/pages/video/detail/reply_reply/controller.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pages/video/detail/reply_reply/controller.dart b/lib/pages/video/detail/reply_reply/controller.dart index 682a3d2c5..34d77fadf 100644 --- a/lib/pages/video/detail/reply_reply/controller.dart +++ b/lib/pages/video/detail/reply_reply/controller.dart @@ -113,9 +113,9 @@ class VideoReplyReplyController extends CommonController ).animate(controller!); () async { await Future.delayed(const Duration(milliseconds: 200)); - await itemScrollCtr.scrollTo( - index: hasRoot ? index! + 3 : index! + 1, - duration: const Duration(milliseconds: 200), + itemScrollCtr.jumpTo( + index: hasRoot ? index! + 3 : index! + 1, alignment: 0.25, + // duration: const Duration(milliseconds: 200), ); await Future.delayed(const Duration(milliseconds: 800)); await controller?.forward();