Note that there are some explanatory texts on larger screens.

plurals
  1. POProblem with jQuery Mouseenter/Mouseleave in Firefox
    primarykey
    data
    text
    <p>I'm having a problem with the mosueenter/mouseleave events only in Firefox...</p> <p><a href="http://www.screencast.com/users/StanleyGoldman/folders/Jing/media/be3572de-9c72-4e2a-8ead-6d29b0764709" rel="nofollow noreferrer">http://www.screencast.com/users/StanleyGoldman/folders/Jing/media/be3572de-9c72-4e2a-8ead-6d29b0764709</a></p> <pre><code>&lt;HTML&gt; &lt;HEAD&gt; &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.4.js"&gt;&lt;/script&gt; &lt;script&gt; $(document).ready(function() { $("#theDiv").mouseenter(function() { $("#output").append('mouseenter&lt;br&gt;'); }); $("#theDiv").mouseleave(function() { $("#output").append('mouseleave&lt;br&gt;'); }); }); &lt;/script&gt; &lt;/HEAD&gt; &lt;BODY&gt; &lt;div id="theDiv" style="position:relative; height: 300px; width:300px; background-color:Black;"&gt; &lt;input type="text" style="position:absolute; top: 40px;" /&gt; &lt;div style="position:absolute; top:100px; height:100px; width:100px; background-color:Red; overflow:auto;"&gt; &lt;p&gt;Content&lt;/p&gt; &lt;p&gt;Content&lt;/p&gt; &lt;p&gt;Content&lt;/p&gt; &lt;p&gt;Content&lt;/p&gt; &lt;p&gt;Content&lt;/p&gt; &lt;p&gt;Content&lt;/p&gt; &lt;p&gt;Content&lt;/p&gt; &lt;p&gt;Content&lt;/p&gt; &lt;p&gt;Content&lt;/p&gt; &lt;p&gt;Content&lt;/p&gt; &lt;p&gt;Content&lt;/p&gt; &lt;p&gt;Content&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="output"&gt;&lt;/div&gt; &lt;/BODY&gt; &lt;/HTML&gt; </code></pre> <p>I only want to know when the mouse has left the containing DIV. But if you either move the mouse over a textbox really fast or move the mouse over the scrollbar of a div, the events fire.</p> <p>--EDIT--</p> <pre><code>$("#theDiv").hover(function() { $("#output").append('hoverin&lt;br&gt;'); }, function() { $("#output").append('hoverout&lt;br&gt;'); }); </code></pre> <p>I tried the following with hover. It seems to suffer from the same issue only in Firefox.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload