Skip to content

Commit

Permalink
Merge pull request #390 from KrzysztofDusko/master
Browse files Browse the repository at this point in the history
Fix scrolling by mouse selection
  • Loading branch information
danipen authored Jan 8, 2024
2 parents be8fc93 + 452b8a8 commit 09b0c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AvaloniaEdit/Editing/SelectionMouseHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ private void ExtendSelectionToMouse(PointerEventArgs e)
TextArea.Caret.Offset = newWord.Offset < _startWord.Offset ? newWord.Offset : Math.Max(newWord.EndOffset, _startWord.EndOffset);
}
}
TextArea.Caret.BringCaretToView(0);
TextArea.Caret.BringCaretToView(5.0);
}
#endregion

Expand Down

0 comments on commit 09b0c9a

Please sign in to comment.