1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 07:22:55 +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> /// <summary>
/// The total amount of time visible on the timeline. /// The total amount of time visible on the timeline.
/// </summary> /// </summary>
public double VisibleRange => (DisplayableContent / Content.DrawWidth) * track.Length; public double VisibleRange => track.Length / Zoom;
public SnapResult FindSnappedPositionAndTime(Vector2 screenSpacePosition, SnapType snapType = SnapType.All) => public SnapResult FindSnappedPositionAndTime(Vector2 screenSpacePosition, SnapType snapType = SnapType.All) =>
new SnapResult(screenSpacePosition, beatSnapProvider.SnapTime(getTimeFromPosition(Content.ToLocalSpace(screenSpacePosition)))); new SnapResult(screenSpacePosition, beatSnapProvider.SnapTime(getTimeFromPosition(Content.ToLocalSpace(screenSpacePosition))));