Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

race condition when aHide is false and event is hover #1

Open
nathanaelle opened this issue Aug 2, 2011 · 1 comment
Open

race condition when aHide is false and event is hover #1

nathanaelle opened this issue Aug 2, 2011 · 1 comment
Assignees

Comments

@nathanaelle
Copy link

context

several same-sized divs with float:left.
each div have a minitooltip associated with aHide set false.

step to reproduce

  1. when the cursor is over a div a tooltip appears.
  2. move the cursor from the div to the tooltip

explanation

when the cursor move from the div to the tooltip, the cursor may raise an event on visible part of the div under the tooltip.

| tooltip |
+---/----+
.....v....... <- this space is the danger zone because this div's tooltip raise randomly an hover event when the cursor is detected on it.
+---------+
| div |

demonstration code

<style>body p{float:left;border:1px solid #000;width:200px;height:200px;margin:0}</style>
<p></p><p></p><p></p><p></p><p></p><p></p>
<p></p><p></p><p></p><p></p><p></p><p></p>
<p></p><p></p><p></p><p></p><p></p><p></p>
<script>
$(document).ready(function(){$("p").each(function(i,e){var t = $(this);t.miniTip({aHide:false,event:'hover',content:'['+i+']'});
});});</script>

@ghost ghost assigned goldfire Aug 2, 2011
@goldfire
Copy link
Owner

goldfire commented Aug 3, 2011

Thanks for the detailed report! One option might be to redo the html of the tooltip holder, but I'm also looking at some other options to fix this. I'll try to find the best solution for this soon and get it pushed out in 1.3.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants