Revise Dispatchers.Swing usage to run code on UI thread
The following discussion from !199 (merged) should be addressed:
-
@ialokim started a discussion: (+1 comment) I had to add this explicit dependency as described at https://github.com/JetBrains/compose-jb/releases/tag/v1.1.1.
They also state that our use of Dispatchers.Swing that relies on Compose internally using this dispatcher for the UI drawing is probably not future-proof. We might want to look again into binding the events to a coroutineScope instead (related to #336).