Protect the NewsCard from clicks while hovering DateContainer

This commit is contained in:
Andrei Zavatski 2020-07-16 23:14:51 +03:00
parent 0280f00022
commit ab23e7dfd4
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Framework.Input.Events;
using osu.Framework.Platform;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
@ -187,6 +188,8 @@ private void load(OverlayColourProvider colourProvider)
}
};
}
protected override bool OnClick(ClickEvent e) => true; // Protects the NewsCard from clicks while hovering DateContainer
}
}
}