Skip to content

Commit f5261f3

Browse files
committed
Tooltip: Stop tracking the mouse if the element gains focus. Fixes #8622 - Tooltip tracks mouse when the element has focus.
1 parent 7009e9b commit f5261f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/jquery.ui.tooltip.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ $.widget( "ui.tooltip", {
140140
this._find( target ).position( $.extend({
141141
of: target
142142
}, this.options.position ) );
143+
// Stop tacking (#8622)
144+
this._off( this.document, "mousemove" );
143145
return;
144146
}
145147

0 commit comments

Comments
 (0)