Add zooming in curve editor relative to the mouse cursor and adapt to curve size
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user