1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 08:07:24 +08:00

Revert "Fix timeline objects disappearing prematurely on wide-screens"

This reverts commit 02baf9a97a.
This commit is contained in:
Salman Ahmed 2022-06-03 02:03:04 +03:00
parent 8471b24659
commit 60fb5d5e6c

View File

@ -304,7 +304,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
/// <summary>
/// The total amount of time visible on the timeline.
/// </summary>
public double VisibleRange => (DisplayableContent / Content.DrawWidth) * track.Length;
public double VisibleRange => track.Length / Zoom;
public SnapResult FindSnappedPositionAndTime(Vector2 screenSpacePosition, SnapType snapType = SnapType.All) =>
new SnapResult(screenSpacePosition, beatSnapProvider.SnapTime(getTimeFromPosition(Content.ToLocalSpace(screenSpacePosition))));