Browse Source

Fix middle click being able to change selection

Deadpikle 5 years ago
parent
commit
a8663cd1f3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Avalonia.Controls/TextBox.cs

+ 1 - 1
src/Avalonia.Controls/TextBox.cs

@@ -715,7 +715,7 @@ namespace Avalonia.Controls
         protected override void OnPointerMoved(PointerEventArgs e)
         {
             // selection should not change during pointer move if the user right clicks
-            if (_presenter != null && e.Pointer.Captured == _presenter && !e.GetCurrentPoint(this).Properties.IsRightButtonPressed)
+            if (_presenter != null && e.Pointer.Captured == _presenter && e.GetCurrentPoint(this).Properties.IsLeftButtonPressed)
             {
                 var point = e.GetPosition(_presenter);