title: How can I detect when the mouse leaves the window?
body: <p>I want to be able to detect when the mouse leaves the window so I can stop events from firing while the user's mouse is elsewhere.</p>
  
  <p>Any ideas of how to do this?</p>