jakubg1 / OpenSMCE

Game engine which allows creating a broad range of marble popper games.
MIT License
14 stars 11 forks source link

WidgetSpriteButton click behavior #113

Closed bchantech closed 11 months ago

bchantech commented 11 months ago

Currently when the mouse is held down on a button the click action cannot be cancelled by releasing the mouse away from the button. The action should not be committed unless the mouse is over the button when it is released.

Expected:

https://github.com/jakubg1/OpenSMCE/assets/20405114/11db947c-ad98-4a93-bb7d-62f9f84da543

Actual:

https://github.com/jakubg1/OpenSMCE/assets/20405114/a59e8047-c1f1-4288-b000-0456bf38c0cb