From f5261f359e8cad8f525f6a36c113b7058e533c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 4 Oct 2012 11:13:14 -0400 Subject: [PATCH] Tooltip: Stop tracking the mouse if the element gains focus. Fixes #8622 - Tooltip tracks mouse when the element has focus. --- ui/jquery.ui.tooltip.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index f38379f21..bb6ea6d88 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -140,6 +140,8 @@ $.widget( "ui.tooltip", { this._find( target ).position( $.extend({ of: target }, this.options.position ) ); + // Stop tacking (#8622) + this._off( this.document, "mousemove" ); return; }