TheNexusCity / webaverse-app

Web metaverse client
https://app.webaverse.com
MIT License
4 stars 3 forks source link

Avatar change should close current hups #143

Closed lalalune closed 2 years ago

lalalune commented 2 years ago

When the player changes avatars the camera stops following them in the chat diorama

If the diorama isn't open or set, this is totally fine, and resets. However, if the player sets their avatar while the diorama is open, the diorama will remain on the old one and the chat window may not close.

The solution is to force the hups to close when the player changes their avatar. Ideally this is done with addEventListener('avatarchange') and applies to all players across the network, since it can also occur to remote players.