Im currently customizing the javascript code for magicmouse - https://magicmousejs.web.app/#
What my concept is when the mouse cursor leaves the screen the .hide
.hide