title: Why isn't this overlay for mousemove disappearing on mouseleave?
body: <p>I have a skyblue rectangle. When the mouse moves inside the skyblue rectangle, a smaller rectangle moves with the mouse. When the mouse leaves the area, the smaller rectangle should disappear, but sometimes it continues showing.</p>
  
  <p>I don't see anything with the code. Can anybody tell me why this is happening?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function() {
    $("#div1").on("mousemove", function(e) {
      $("#div2").css({
        "display": "inline",
        "left": e.clientX,
        "top": e.clientY
      });
    })
    $("#div1").on("mouseleave", function() {
      $("#div2").hide();
    })
  })</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#div1 {
    background-color: skyblue;
    width: 200px;
    height: 100px
  }
  #div2 {
    background-color: white;
    width: 35px;
    height: 15px;
    border: 1px solid black;
    display: none;
    position: fixed;
  }
  #div2 p {
    font-size: 12px;
    margin: 0px 2px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;div id="div1"&gt;
    &lt;div id="div2"&gt;
      &lt;p&gt;mouse&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>