Rename CanScrollMultilineText to IsMultilineScrollable to match the other properties naming

#818
This commit is contained in:
Wojtek Figat
2022-11-21 16:10:53 +01:00
parent c21c57605a
commit c5d1897acf

View File

@@ -230,9 +230,9 @@ namespace FlaxEngine.GUI
public bool ClipText { get; set; } = true;
/// <summary>
/// Gets or sets a value indicating whether you can scroll the text in the text box
/// Gets or sets a value indicating whether you can scroll the text in the text box (eg. with a mouse wheel).
/// </summary>
public bool CanScrollMultilineText { get; set; } = true;
public bool IsMultilineScrollable { get; set; } = true;
/// <summary>
/// Gets or sets textbox background color when the control is selected (has focus).
@@ -1162,7 +1162,7 @@ namespace FlaxEngine.GUI
return true;
// Multiline scroll
if (IsMultiline && _text.Length != 0 && CanScrollMultilineText)
if (IsMultiline && _text.Length != 0 && IsMultilineScrollable)
{
TargetViewOffset = Float2.Clamp(_targetViewOffset - new Float2(0, delta * 10.0f), Float2.Zero, new Float2(_targetViewOffset.X, _textSize.Y));
return true;