]> source.dussan.org Git - jquery-ui.git/commitdiff
Tooltip: Stop tracking the mouse if the element gains focus. Fixes #8622 - Tooltip...
authorScott González <scott.gonzalez@gmail.com>
Thu, 4 Oct 2012 15:13:14 +0000 (11:13 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 4 Oct 2012 15:14:37 +0000 (11:14 -0400)
ui/jquery.ui.tooltip.js

index f38379f21eb073e87683c5788d82b5885ea6c247..bb6ea6d8895263837781abd9caf155e146e03dfa 100644 (file)
@@ -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;
                }