fix: the editor loses focus occasionally

This commit is contained in:
Lucas.Xu 2022-08-09 17:52:11 +08:00
parent e9d8dc9657
commit b7cb4b647d

View File

@ -306,6 +306,9 @@ class _FlowySelectionState extends State<FlowySelection>
return;
}
editorState.service.keyboardService?.enable();
editorState.service.scrollService?.enable();
panEndOffset = details.globalPosition;
final dy = editorState.service.scrollService?.dy;
var panStartOffsetWithScrollDyGap = panStartOffset!;