From b7cb4b647ddbb48a8928b44b32d716c9b95a1a63 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Tue, 9 Aug 2022 17:52:11 +0800 Subject: [PATCH] fix: the editor loses focus occasionally --- .../packages/flowy_editor/lib/service/selection_service.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/app_flowy/packages/flowy_editor/lib/service/selection_service.dart b/frontend/app_flowy/packages/flowy_editor/lib/service/selection_service.dart index ecf8caf817..1786eca05f 100644 --- a/frontend/app_flowy/packages/flowy_editor/lib/service/selection_service.dart +++ b/frontend/app_flowy/packages/flowy_editor/lib/service/selection_service.dart @@ -306,6 +306,9 @@ class _FlowySelectionState extends State return; } + editorState.service.keyboardService?.enable(); + editorState.service.scrollService?.enable(); + panEndOffset = details.globalPosition; final dy = editorState.service.scrollService?.dy; var panStartOffsetWithScrollDyGap = panStartOffset!;