Closed nippur72 closed 9 years ago
This is intentional behavior: textArea_MouseMove
in word-selection mode calls SetCaretOffsetToMousePosition
(directly below the comment you quoted).
You could replace that call with
textArea.Caret.Offset = newWord.Offset > startWord.Offset ? newWord.EndOffset : newWord.Offset;
That change would make the comment and the allowedSegment
parameter redundant.
If you double click on a word to select it, selection is correct but caret isn't moved at the end of word/selection as in normal text editors.
I tried to fix it myself in
SelectionMouseHandler.cs\textArea_MouseLeftButtonDown()
withbut the caret keeps returning on the old position. Perhaps it's related to this comment:
but I don't know how to handle it.