1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 16:07:25 +08:00
osu-lazer/osu.Game.Tournament/Screens/Ladder/ScrollableContainer.cs
2018-09-25 01:08:09 +09:00

23 lines
665 B
C#

// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics.Containers;
using osu.Framework.Input.States;
using OpenTK;
namespace osu.Game.Tournament.Screens.Ladder
{
public class ScrollableContainer : Container
{
protected override bool OnDragStart(InputState state) => true;
public override bool ReceiveMouseInputAt(Vector2 screenSpacePos) => true;
protected override bool OnDrag(InputState state)
{
Position += state.Mouse.Delta;
return base.OnDrag(state);
}
}
}