GUI: FocusLoss Event gets delayed until MouseRelease is done

There's currently no easy method to move the mouse ouf of a button to cancel the click This is what the engine sees when

  • Moving the Mouse onto the element
  • Clicking and holding the mouse button
  • Moving the Mouse away from the element
  • Releasing the Mouse button

Log: mouseRelease mousePress mouseRelease focusLoss

the focusLoss event got fired on the same frame as the mouseRelease event (after the mouseRelease event)

the only way to currently fix it is adding some asynchronous workaround to the mouseRelease event (not actually using the async libraries as those don't work when the game is paused, but with a DIY solution using onFrame)

Edited by Ownly Me