tweak keepAlive for better user experience

keepAlive will now close when leaving target element or tooltip box
This commit is contained in:
David Stone 2020-05-19 14:39:44 -06:00
parent eea062f9fa
commit 030c90e069
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@
org_elem.hover(function(){
active_tiptip();
}, function(){
if(!opts.keepAlive){
if(!opts.keepAlive || !tiptip_holder.is(':hover')){
deactive_tiptip();
}
});
@ -188,4 +188,4 @@
}
});
}
})(jQuery);
})(jQuery);