* use hover events (js) instead of CSS to detect if hovering VRFS-2097

This commit is contained in:
Seth Call 2014-11-15 15:07:13 -06:00
parent 12ca12f3cf
commit 94efaf8a8e
1 changed files with 3 additions and 2 deletions

View File

@ -341,15 +341,16 @@
$(bubbleSelector).hover(
function () {
$(this).data('hovering', true)
// do nothing when entering the bubble
},
function () {
$(this).fadeOut(fadeoutValue);
$(this).data('hovering', false).fadeOut(fadeoutValue);
}
);
// first check to see if the user isn't hovering over the hover bubble
if (!$(bubbleSelector).is(":hover")) {
if (!$(bubbleSelector).data('hovering')) {
$(bubbleSelector).fadeOut(fadeoutValue);
}
}