Add support for right mouse absolute scrolling (when enabled)

Will likely need to be bindable when hooked up to settings and actually used.
This commit is contained in:
Dean Herbert
2017-07-12 18:57:44 +09:00
parent a5d0bfb02f
commit 9d47dd9ff9
10 changed files with 86 additions and 8 deletions

View File

@ -17,6 +17,7 @@ using osu.Framework.Localisation;
using osu.Game.Beatmaps.Drawables;
using osu.Game.Database;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Sprites;
using osu.Game.Online.Multiplayer;
using osu.Game.Users;
@ -341,7 +342,7 @@ namespace osu.Game.Screens.Multiplayer
},
},
},
participantsScroll = new ScrollContainer
participantsScroll = new OsuScrollContainer
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,

View File

@ -12,6 +12,7 @@ using System;
using osu.Framework.Allocation;
using osu.Framework.Threading;
using osu.Game.Database;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.UserInterface;
using osu.Game.Rulesets.Scoring;
using osu.Game.Online.API;
@ -74,7 +75,7 @@ namespace osu.Game.Screens.Select.Leaderboards
{
Children = new Drawable[]
{
scrollContainer = new ScrollContainer
scrollContainer = new OsuScrollContainer
{
RelativeSizeAxes = Axes.Both,
ScrollbarVisible = false,