Add skipping textbox scrolling if it has no selection

This commit is contained in:
Wojtek Figat
2021-03-17 13:44:38 +01:00
parent e6d3242670
commit 518df5e62b

View File

@@ -539,6 +539,12 @@ namespace FlaxEngine.GUI
return;
}
// If it's not selected
if (_selectionStart == -1 && _selectionEnd == -1)
{
return;
}
Rectangle caretBounds = CaretBounds;
Rectangle textArea = TextRectangle;