diff --git a/Source/Editor/GUI/Timeline/GUI/Background.cs b/Source/Editor/GUI/Timeline/GUI/Background.cs index 62c6b3b31..40537e377 100644 --- a/Source/Editor/GUI/Timeline/GUI/Background.cs +++ b/Source/Editor/GUI/Timeline/GUI/Background.cs @@ -236,6 +236,17 @@ namespace FlaxEditor.GUI.Timeline.GUI return true; } + // Scroll view horizontally + if (IsMouseOver && Root.GetKey(KeyboardKeys.Shift)) + { + var scroll = _timeline.MediaBackground.HScrollBar; + if (scroll.Visible && scroll.Enabled) + { + scroll.TargetValue -= delta * Timeline.UnitsPerSecond / _timeline.Zoom; + return true; + } + } + return false; }