From dcdb6b9de61b9285f4a17b4c1210164f5d8453db Mon Sep 17 00:00:00 2001 From: Mathias Mogensen Date: Tue, 12 Sep 2023 10:08:57 +0200 Subject: [PATCH] fix: duration cannot be zero in animate --- .../editor/editor_component/service/scroll_service_widget.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/editor/editor_component/service/scroll_service_widget.dart b/lib/src/editor/editor_component/service/scroll_service_widget.dart index d10bb4eb6..d7530cffe 100644 --- a/lib/src/editor/editor_component/service/scroll_service_widget.dart +++ b/lib/src/editor/editor_component/service/scroll_service_widget.dart @@ -107,7 +107,7 @@ class _ScrollServiceWidgetState extends State SelectionUpdateReason.searchNavigate) { widget.editorScrollController.animateTo( offset: endTouchPoint.dy - 100, - duration: Duration.zero, + duration: const Duration(microseconds: 1), ); return; }