1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 05:27:23 +08:00

Merge pull request #14978 from peppy/fix-editor-file-selector-textbox-drags

Fix dragging on an editor file selection text box causing repeated popover display
This commit is contained in:
Dan Balasescu 2021-10-06 13:52:08 +09:00 committed by GitHub
commit e6aa05a4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,6 +89,13 @@ namespace osu.Game.Screens.Edit.Setup
{
public Action OnFocused;
protected override bool OnDragStart(DragStartEvent e)
{
// This text box is intended to be "read only" without actually specifying that.
// As such we don't want to allow the user to select its content with a drag.
return false;
}
protected override void OnFocus(FocusEvent e)
{
OnFocused?.Invoke();