@@ -207,7 +207,7 @@ namespace FlaxEngine.GUI
|
||||
{
|
||||
// Select the word under the mouse
|
||||
int textLength = TextLength;
|
||||
if (textLength != 0)
|
||||
if (textLength != 0 && IsSelectable)
|
||||
{
|
||||
var hitPos = CharIndexAtPoint(ref location);
|
||||
int spaceLoc = _text.LastIndexOfAny(Separators, hitPos - 2);
|
||||
|
||||
@@ -234,7 +234,10 @@ namespace FlaxEngine.GUI
|
||||
/// <inheritdoc />
|
||||
public override bool OnMouseDoubleClick(Float2 location, MouseButton button)
|
||||
{
|
||||
SelectAll();
|
||||
if (IsSelectable)
|
||||
{
|
||||
SelectAll();
|
||||
}
|
||||
return base.OnMouseDoubleClick(location, button);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user