From c5d1897acf8d9847b04af6dba84cc917691ef144 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 21 Nov 2022 16:10:53 +0100 Subject: [PATCH] Rename `CanScrollMultilineText` to `IsMultilineScrollable` to match the other properties naming #818 --- Source/Engine/UI/GUI/Common/TextBoxBase.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Engine/UI/GUI/Common/TextBoxBase.cs b/Source/Engine/UI/GUI/Common/TextBoxBase.cs index 50b5b0945..340459c8f 100644 --- a/Source/Engine/UI/GUI/Common/TextBoxBase.cs +++ b/Source/Engine/UI/GUI/Common/TextBoxBase.cs @@ -230,9 +230,9 @@ namespace FlaxEngine.GUI public bool ClipText { get; set; } = true; /// - /// 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). /// - public bool CanScrollMultilineText { get; set; } = true; + public bool IsMultilineScrollable { get; set; } = true; /// /// 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;