1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 09:02:55 +08:00

Fix ISourcedFromTouch events being blocked by LoadingLayer

This commit is contained in:
Dean Herbert 2020-10-21 23:09:39 +09:00
parent 8273715bde
commit 22112e4303

View File

@ -44,6 +44,11 @@ namespace osu.Game.Graphics.UserInterface
// blocking scroll can cause weird behaviour when this layer is used within a ScrollContainer.
case ScrollEvent _:
return false;
// blocking touch events causes the ISourcedFromTouch versions to not be fired, potentially impeding behaviour of drawables *above* the loading layer that may utilise these.
// note that this will not work well if touch handling elements are beneath the this loading layer (something to consider for the future).
case TouchEvent _:
return false;
}
return true;