Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Gonyea <me@sgonyea.com>2014-08-05 00:03:11 +0400
committerScott Gonyea <me@sgonyea.com>2014-08-29 04:17:50 +0400
commitaac0e16452301a4735a668dc228b6b084b2d63d0 (patch)
tree2b5f01ea91a96a9320d2ea4e271adeb57cedc165 /js/tooltip.js
parent9096c2002123a6dafdf0c3d9df5d069c968d738e (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.js5
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)