Skip to content

Commit

Permalink
fix: #9 Using the mouse to highlight text very easy to miss the first…
Browse files Browse the repository at this point in the history
… letter
  • Loading branch information
LucasXu0 committed Mar 15, 2023
1 parent 8dfb9a1 commit c420247
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/service/selection_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,9 @@ class _AppFlowySelectionState extends State<AppFlowySelection>

void _onPanStart(DragStartDetails details) {
clearSelection();
_clearToolbar();

_panStartOffset = details.globalPosition;
_panStartOffset = details.globalPosition.translate(-3.0, 0);
_panStartScrollDy = editorState.service.scrollService?.dy;

_enableInteraction();
Expand Down

0 comments on commit c420247

Please sign in to comment.