Merge pull request #18477 from frenzibyte/fix-timeline-context-menu

Fix context menu no longer opening for hitobjects in timeline
This commit is contained in:
Dan Balasescu
2022-05-30 11:49:06 +09:00
committed by GitHub
3 changed files with 47 additions and 16 deletions

View File

@ -16,6 +16,7 @@ using osu.Game.Configuration;
using osu.Game.Graphics;
using osu.Game.Rulesets.Edit;
using osuTK;
using osuTK.Input;
namespace osu.Game.Screens.Edit.Compose.Components.Timeline
{
@ -273,7 +274,8 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
if (base.OnMouseDown(e))
beginUserDrag();
return true;
// handling right button as well breaks context menus inside the timeline, only handle left button for now.
return e.Button == MouseButton.Left;
}
protected override void OnMouseUp(MouseUpEvent e)