Skip to content

Commit 4a1c9f0

Browse files
committed
* event-bubbling fix for platforms other than MonoGame
1 parent f32f3fe commit 4a1c9f0

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/Myra/Graphics2D/UI/InputEventsManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ public InputEvent(IInputEventsProcessor processor, InputEventType type)
6161
}
6262
}
6363

64-
private static readonly Queue<InputEvent> _eventsQueue = new();
64+
private static readonly Queue<InputEvent> _eventsQueue = new Queue<InputEvent>();
6565

66-
private static readonly Stack<InputEvent> _eventsStack = new();
66+
private static readonly Stack<InputEvent> _eventsStack = new Stack<InputEvent>();
6767

6868
public static void Queue(IInputEventsProcessor processor, InputEventType type)
6969
{

src/Myra/Graphics2D/UI/Selectors/TabControl.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
using System.ComponentModel;
1+
using Myra.Events;
22
using Myra.Graphics2D.UI.Styles;
3-
using System;
3+
using System.ComponentModel;
44
using System.Xml.Serialization;
5-
using Myra.Graphics2D.Brushes;
6-
using Microsoft.Xna.Framework;
7-
using Myra.Events;
85

96
namespace Myra.Graphics2D.UI
107
{

0 commit comments

Comments
 (0)