mirror of https://github.com/ppy/osu
Merge pull request #22381 from Susko3/fix-osu-touch-with-screen-scaling
Fix touches not being handled outside `OsuTouchInputMapper` when using screen scaling
This commit is contained in:
commit
bc717b1f25
|
@ -10,6 +10,7 @@
|
|||
using osu.Framework.Input.Events;
|
||||
using osu.Framework.Input.StateChanges;
|
||||
using osu.Game.Configuration;
|
||||
using osuTK;
|
||||
|
||||
namespace osu.Game.Rulesets.Osu.UI
|
||||
{
|
||||
|
@ -38,6 +39,9 @@ private void load(OsuConfigManager config)
|
|||
mouseDisabled = config.GetBindable<bool>(OsuSetting.MouseDisableButtons);
|
||||
}
|
||||
|
||||
// Required to handle touches outside of the playfield when screen scaling is enabled.
|
||||
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => true;
|
||||
|
||||
protected override void OnTouchMove(TouchMoveEvent e)
|
||||
{
|
||||
base.OnTouchMove(e);
|
||||
|
|
Loading…
Reference in New Issue