public static void ScrollToHorizontal(int offset) { if (!IsOpen) { return; } var stateInstance = TimelineWindow.GetState(TimelineWindow.Instance); WindowState.OffsetTimeArea(stateInstance, offset); TimelineEditor.Refresh(RefreshReason.WindowNeedsRedraw); }