From 6d6961d9611fdfb4ea88c2ed2f6c57a0ac2e94ce Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Thu, 6 Oct 2022 19:59:51 -0500 Subject: [PATCH] removed mouse button down as it caused issues with focus --- Source/Engine/UI/GUI/Panels/SplitPanel.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/Engine/UI/GUI/Panels/SplitPanel.cs b/Source/Engine/UI/GUI/Panels/SplitPanel.cs index 65ef60a19..5fb8c410a 100644 --- a/Source/Engine/UI/GUI/Panels/SplitPanel.cs +++ b/Source/Engine/UI/GUI/Panels/SplitPanel.cs @@ -24,7 +24,6 @@ namespace FlaxEngine.GUI private Rectangle _splitterRect; private bool _splitterClicked, _mouseOverSplitter; private bool _cursorChanged; - private bool _anyMouseButtonDown; /// /// The first panel (left or upper based on Orientation). @@ -166,7 +165,7 @@ namespace FlaxEngine.GUI Cursor = _orientation == Orientation.Horizontal ? CursorType.SizeWE : CursorType.SizeNS; _cursorChanged = true; } - else if (_mouseOverSplitter && !_anyMouseButtonDown) + else if (_mouseOverSplitter) { Cursor = _orientation == Orientation.Horizontal ? CursorType.SizeWE : CursorType.SizeNS; _cursorChanged = true; @@ -183,7 +182,6 @@ namespace FlaxEngine.GUI /// public override bool OnMouseDown(Float2 location, MouseButton button) { - _anyMouseButtonDown = true; if (button == MouseButton.Left && _splitterRect.Contains(location)) { // Start moving splitter @@ -198,7 +196,6 @@ namespace FlaxEngine.GUI /// public override bool OnMouseUp(Float2 location, MouseButton button) { - _anyMouseButtonDown = false; if (_splitterClicked) { EndTracking();