Skip to content

Commit fd78546

Browse files
authored
[TextBox] fix double click on TextBox cannot select word on touch device (#15606)
* fix double click on TextBox cannot select word on touch device * fix * fix: double click and drag to change selection
1 parent 0ced67f commit fd78546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Avalonia.Controls/TextBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ protected override void OnPointerMoved(PointerEventArgs e)
16501650
if (Math.Abs(caretIndex - previousIndex) == 1)
16511651
e.PreventGestureRecognition();
16521652

1653-
if (e.Pointer.Type == PointerType.Mouse)
1653+
if (e.Pointer.Type == PointerType.Mouse || _isDoubleTapped)
16541654
{
16551655
var selectionStart = SelectionStart;
16561656
var selectionEnd = SelectionEnd;

0 commit comments

Comments
 (0)