1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Calculate horizontal offset on present overlays only

This commit is contained in:
Salman Ahmed 2021-08-12 14:14:54 +03:00
parent b58b5ec2b4
commit 3d7866e82d

View File

@ -1015,9 +1015,9 @@ namespace osu.Game
var horizontalOffset = 0f;
if (Settings.IsLoaded)
if (Settings.IsLoaded && Settings.IsPresent)
horizontalOffset += (ToLocalSpace(Settings.ScreenSpaceDrawQuad.TopRight).X) * SCREEN_OFFSET_RATIO;
if (Notifications.IsLoaded)
if (Notifications.IsLoaded && Notifications.IsPresent)
horizontalOffset += (ToLocalSpace(Notifications.ScreenSpaceDrawQuad.TopLeft).X - DrawWidth) * SCREEN_OFFSET_RATIO;
ScreenOffsetContainer.X = horizontalOffset;