Tooltip: Stop tracking the mouse if the element gains focus. Fixes #8622 - Tooltip tracks mouse when the element has focus.

This commit is contained in:
Scott González 2012-10-04 11:13:14 -04:00
parent 7009e9b332
commit f5261f359e

View File

@ -140,6 +140,8 @@ $.widget( "ui.tooltip", {
this._find( target ).position( $.extend({ this._find( target ).position( $.extend({
of: target of: target
}, this.options.position ) ); }, this.options.position ) );
// Stop tacking (#8622)
this._off( this.document, "mousemove" );
return; return;
} }