symptom #1
how to reproduce:
- type the following text in the editor: "Hello world"
- RIGHT click the position between the letter "r" and "l". This should bring up the context menu.
- now, move the mouse and LEFT click on the character "H"
expected:
Current selection should be cleared.
actual:
Selection not cleared but is extended from the old position to the new position.
Following are my changes to the file, TextAreaMouseHandler.cs:
line 302
- before:Point realmousepos = textArea.TextView.GetLogicalPosition(mousepos.X - textArea.TextView.DrawingPosition.X, mousepos.Y - textArea.TextView.DrawingPosition.Y);
- after:Point realmousepos = textArea.TextView.GetLogicalPosition(mousedownpos.X - textArea.TextView.DrawingPosition.X, mousedownpos.Y - textArea.TextView.DrawingPosition.Y);
line 314
- before:if (mousepos.Y > 0 && mousepos.Y < textArea.TextView.DrawingPosition.Height) {
- after:if (mousedownpos.Y > 0 && mousedownpos.Y < textArea.TextView.DrawingPosition.Height) {
line326
- before: Point realmousepos = textArea.TextView.GetLogicalPosition(mousepos.X - textArea.TextView.DrawingPosition.X, mousepos.Y - textArea.TextView.DrawingPosition.Y);
- after: Point realmousepos = textArea.TextView.GetLogicalPosition(mousedownpos.X - textArea.TextView.DrawingPosition.X, mousedownpos.Y - textArea.TextView.DrawingPosition.Y);
line 333
- before: if (mousepos.Y > 0 && mousepos.Y < textArea.TextView.DrawingPosition.Height) {
- after: if (mousedownpos.Y > 0 && mousedownpos.Y < textArea.TextView.DrawingPosition.Height) {
- David