mirror of
https://github.com/ppy/osu
synced 2025-02-06 21:32:00 +00:00
Merge pull request #10573 from peppy/fix-loading-layer-blocking-touch
Fix ISourcedFromTouch events being blocked by LoadingLayer
This commit is contained in:
commit
e664d04be2
@ -44,6 +44,11 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
// blocking scroll can cause weird behaviour when this layer is used within a ScrollContainer.
|
// blocking scroll can cause weird behaviour when this layer is used within a ScrollContainer.
|
||||||
case ScrollEvent _:
|
case ScrollEvent _:
|
||||||
return false;
|
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;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user