Added RstoreTextFromStart function and changed the calls. Renamed bool.

This commit is contained in:
Chandler Cox
2022-12-08 08:02:43 -06:00
parent 9b82860154
commit eab775b9a2
3 changed files with 19 additions and 14 deletions

View File

@@ -125,7 +125,7 @@ namespace FlaxEditor.GUI.Input
_min = min;
_max = max;
_slideSpeed = sliderSpeed;
CanEndEditByClick = true;
EndEditOnClick = true;
}
/// <summary>
@@ -174,7 +174,7 @@ namespace FlaxEditor.GUI.Input
private void EndSliding()
{
_isSliding = false;
CanEndEditByClick = true;
EndEditOnClick = true;
EndMouseCapture();
if (_cursorChanged)
{
@@ -247,7 +247,7 @@ namespace FlaxEditor.GUI.Input
_startSlideLocation = location;
_startSlideValue = _value;
StartMouseCapture(true);
CanEndEditByClick = false;
EndEditOnClick = false;
// Hide cursor and cache location
Cursor = CursorType.Hidden;