From d5732327078709c3680385c79a2106f263009f84 Mon Sep 17 00:00:00 2001 From: Mani Mishra Date: Wed, 7 Oct 2015 10:42:10 +0530 Subject: Tooltip: Use show.delay update only when track option is active Fixes #14682 Closes gh-1613 --- ui/widgets/tooltip.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/widgets/tooltip.js b/ui/widgets/tooltip.js index daf783a98..1bff57c8f 100644 --- a/ui/widgets/tooltip.js +++ b/ui/widgets/tooltip.js @@ -318,7 +318,8 @@ $.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 ) { + // 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 ); -- cgit v1.2.3