Skip to content

Commit

Permalink
Merge pull request #13 from LucasXu0/fix_#9
Browse files Browse the repository at this point in the history
fix: #9 Using the mouse to highlight text very easy to miss the first letter
  • Loading branch information
LucasXu0 authored Mar 15, 2023
2 parents 8dfb9a1 + c420247 commit 495e085
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 495e085

Please sign in to comment.