linsyking / Messenger

A 2D game engine for Elm
17 stars 4 forks source link

Subscribe to onVisibilityChange event #12

Closed YUcxovo closed 4 months ago

YUcxovo commented 6 months ago

Subscribing the onVisibilityChange Msg is helpful when users switch to another window. Especially when dealing with the keydown Msg or a timer.

YUcxovo commented 6 months ago

Add WindowVisibility to GlobalData might be more convenient for users

linsyking commented 6 months ago

Add WindowVisibility to GlobalData might be more convenient for users

Sounds reasonable.