diff --git a/osu.Framework/Graphics/UserInterface/SliderBar.cs b/osu.Framework/Graphics/UserInterface/SliderBar.cs index 9b173f832e..d1232baea4 100644 --- a/osu.Framework/Graphics/UserInterface/SliderBar.cs +++ b/osu.Framework/Graphics/UserInterface/SliderBar.cs @@ -145,7 +145,7 @@ protected override bool OnClick(ClickEvent e) if (handleClick) { handleMouseInput(e); - commit(); + Commit(); } return true; @@ -170,7 +170,7 @@ protected override bool OnDragStart(DragStartEvent e) return true; } - protected override void OnDragEnd(DragEndEvent e) => commit(); + protected override void OnDragEnd(DragEndEvent e) => Commit(); protected override bool OnKeyDown(KeyDownEvent e) { @@ -203,12 +203,12 @@ protected override bool OnKeyDown(KeyDownEvent e) protected override void OnKeyUp(KeyUpEvent e) { if (e.Key == Key.Left || e.Key == Key.Right) - commit(); + Commit(); } private bool uncommittedChanges; - private bool commit() + protected virtual bool Commit() { if (!uncommittedChanges) return false;