I use the iframe on my website to embed my game.
I also use the mouse click event to move my sprite towards the mouse, using physics.
When i click and hold the mouse and move "outside" of the iframe, and then come back "into" the iframe.
The mouse button freeses on beeing clicked.
This results in my sprite moving constantly towards the mouse.
Clicking once again does not release it.
Any tips how to solve this?