mirror of
https://github.com/ppy/osu
synced 2024-12-28 09:52:56 +00:00
Fix timeline objects disappearing prematurely on wide-screens
This commit is contained in:
parent
0349d92f8b
commit
02baf9a97a
@ -302,7 +302,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
/// <summary>
|
||||
/// The total amount of time visible on the timeline.
|
||||
/// </summary>
|
||||
public double VisibleRange => track.Length / Zoom;
|
||||
public double VisibleRange => (DisplayableContent / Content.DrawWidth) * track.Length;
|
||||
|
||||
public SnapResult FindSnappedPositionAndTime(Vector2 screenSpacePosition, SnapType snapType = SnapType.All) =>
|
||||
new SnapResult(screenSpacePosition, beatSnapProvider.SnapTime(getTimeFromPosition(Content.ToLocalSpace(screenSpacePosition))));
|
||||
|
Loading…
Reference in New Issue
Block a user