]> source.dussan.org Git - jquery-ui.git/commitdiff
Mouse: Fix delay timeout clearing upon mouseup
authorLiran Sharir <lsharir@gmail.com>
Wed, 22 Jul 2015 12:58:47 +0000 (15:58 +0300)
committerScott González <scott.gonzalez@gmail.com>
Thu, 9 Jun 2016 20:26:40 +0000 (16:26 -0400)
Fixes #14458
Closes gh-1579

(cherry picked from commit 9b82001a70a6273df037db9e602080011d0fd7ba)

ui/mouse.js

index 79291bd2423e78871099499f3a60fc92d14823a6..87c67bbf2c4b38af1aa0ddad76c7eabca5126035 100644 (file)
@@ -173,6 +173,11 @@ return $.widget("ui.mouse", {
                        this._mouseStop(event);
                }
 
+               if (this._mouseDelayTimer) {
+                       clearTimeout(this._mouseDelayTimer);
+                       delete this._mouseDelayTimer;
+               }
+
                mouseHandled = false;
                return false;
        },