Add zooming in curve editor relative to the mouse cursor and adapt to curve size

This commit is contained in:
Wojtek Figat
2024-11-29 14:33:46 +01:00
parent 8ee011c7f5
commit 9b43f2f03a
2 changed files with 15 additions and 7 deletions

View File

@@ -266,9 +266,9 @@ namespace FlaxEngine.GUI
bool wasLocked = _isLayoutLocked;
_isLayoutLocked = true;
if (HScrollBar != null)
HScrollBar.Value = -value.X;
HScrollBar.TargetValue = -value.X;
if (VScrollBar != null)
VScrollBar.Value = -value.Y;
VScrollBar.TargetValue = -value.Y;
_isLayoutLocked = wasLocked;
base.SetViewOffset(ref value);