From 11ebb6946d72ffeb189adf8ac67a1b6fff1ec7a4 Mon Sep 17 00:00:00 2001 From: Mani Mishra Date: Wed, 7 Oct 2015 10:42:10 +0530 Subject: [PATCH] Tooltip: Use show.delay update only when track option is active Fixes #14682 Closes gh-1613 (cherry picked from commit d5732327078709c3680385c79a2106f263009f84) --- ui/tooltip.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/tooltip.js b/ui/tooltip.js index 23446ae65..69412d35c 100644 --- a/ui/tooltip.js +++ b/ui/tooltip.js @@ -308,8 +308,9 @@ return $.widget( "ui.tooltip", { // Handle tracking tooltips that are shown with a delay (#8644). As soon // as the tooltip is visible, position the tooltip using the most recent // event. - if ( this.options.show && this.options.show.delay ) { - delayedShow = this.delayedShow = setInterval(function() { + // Adds the check to add the timers only when both delay and track options are set (#14682) + if ( this.options.track && this.options.show && this.options.show.delay ) { + delayedShow = this.delayedShow = setInterval( function() { if ( tooltip.is( ":visible" ) ) { position( positionOption.of ); clearInterval( delayedShow );