Krzysztof Krysiński 1 год назад
Родитель
Сommit
e602c5ca7e
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      src/PixiEditor/Models/Controllers/MouseUpdateControllerSession.cs

+ 5 - 2
src/PixiEditor/Models/Controllers/MouseUpdateControllerSession.cs

@@ -31,8 +31,11 @@ internal class MouseUpdateControllerSession : IDisposable
         this.onStopListening = onStopListening;
         this.onMouseMove = onMouseMove;
 
-        Thread timerThread = new(TimerLoop);
-        timerThread.Name = "MouseUpdateController thread";
+        Thread timerThread = new(TimerLoop)
+        {
+            IsBackground = true, Name = "MouseUpdateController thread"
+        };
+
         timerThread.Start();
 
         onStartListening();