From c420247fe66644fc4b3aa720cea6c8a6f3e95663 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Wed, 15 Mar 2023 20:45:02 +0800 Subject: [PATCH] fix: #9 Using the mouse to highlight text very easy to miss the first letter --- lib/src/service/selection_service.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/service/selection_service.dart b/lib/src/service/selection_service.dart index b522aa9ce..a2e716c9e 100644 --- a/lib/src/service/selection_service.dart +++ b/lib/src/service/selection_service.dart @@ -347,8 +347,9 @@ class _AppFlowySelectionState extends State void _onPanStart(DragStartDetails details) { clearSelection(); + _clearToolbar(); - _panStartOffset = details.globalPosition; + _panStartOffset = details.globalPosition.translate(-3.0, 0); _panStartScrollDy = editorState.service.scrollService?.dy; _enableInteraction();