From 94efaf8a8ef8c042774582ca8278c6e5f378f474 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Sat, 15 Nov 2014 15:07:13 -0600 Subject: [PATCH] * use hover events (js) instead of CSS to detect if hovering VRFS-2097 --- web/app/assets/javascripts/utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/app/assets/javascripts/utils.js b/web/app/assets/javascripts/utils.js index b7641dbbc..8dec17326 100644 --- a/web/app/assets/javascripts/utils.js +++ b/web/app/assets/javascripts/utils.js @@ -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); } }