ketanhwr / reflexio

A web game based on reflection
MIT License
81 stars 72 forks source link

Mirror not dropping when the cursor leaves the canvas #44

Open up730418 opened 6 years ago

up730418 commented 6 years ago

If the cursor exits the canvas and comes back on the mirror will still be attached to the cursor. This can lead to a user accidentally damaging the mother ship.

I propose that an event is added to check if the cursor has left the canvas and if so drop the mirror.