Keyevents bug in playground

I noticed the playground still listens to key events from previous run

hey can you make any sample for that ? in playground

1 Like

Note that if you added event listeners with addEventListener to HTML elements yourself, you are responsible for removing them when the scene unload (in scene.onDisposeObservable for eg). Else they will still be in effect in subsequent runs.

4 Likes

I ended up doing that. I found it weird because I’ve been using the pg for a while and never experienced that