1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 08:30:00 +08:00

Merge pull request #10573 from peppy/fix-loading-layer-blocking-touch

Fix ISourcedFromTouch events being blocked by LoadingLayer
This commit is contained in:
Dan Balasescu
2020-10-22 13:23:53 +09:00
committed by GitHub
Unverified
@@ -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 this loading layer (something to consider for the future).
case TouchEvent _:
return false;
}
return true;