diff options
author | Scott Gonyea <me@sgonyea.com> | 2014-08-05 00:03:11 +0400 |
---|---|---|
committer | Scott Gonyea <me@sgonyea.com> | 2014-08-29 04:17:50 +0400 |
commit | aac0e16452301a4735a668dc228b6b084b2d63d0 (patch) | |
tree | 2b5f01ea91a96a9320d2ea4e271adeb57cedc165 /js/tooltip.js | |
parent | 9096c2002123a6dafdf0c3d9df5d069c968d738e (diff) |
Fix hover-tooltip flickering when mouse re-enters
- is(':visible') seems to be the only reliable check, without a refactoring of how hoverState is used
- tests need improvement
Diffstat (limited to 'js/tooltip.js')
-rw-r--r-- | js/tooltip.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/tooltip.js b/js/tooltip.js index 0758b07eef..1444a7131b 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -105,6 +105,11 @@ var self = obj instanceof this.constructor ? obj : $(obj.currentTarget).data('bs.' + this.type) + if (self && self.$tip && self.$tip.is(':visible')) { + self.hoverState = 'in' + return + } + if (!self) { self = new this.constructor(obj.currentTarget, this.getDelegateOptions()) $(obj.currentTarget).data('bs.' + this.type, self) |