aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiran Sharir <lsharir@gmail.com>2015-07-22 15:58:47 +0300
committerScott González <scott.gonzalez@gmail.com>2015-08-31 16:01:38 -0400
commit9b82001a70a6273df037db9e602080011d0fd7ba (patch)
tree54c9f1959b9bd326368410b81cc15af51a9e2220
parent9bb9a8bac0612e9e1dd9f9da509a3bc2749d8de6 (diff)
downloadjquery-ui-9b82001a70a6273df037db9e602080011d0fd7ba.tar.gz
jquery-ui-9b82001a70a6273df037db9e602080011d0fd7ba.zip
Mouse: Fix delay timeout clearing upon mouseup
Fixes #14458 Closes gh-1579
-rw-r--r--ui/widgets/mouse.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/widgets/mouse.js b/ui/widgets/mouse.js
index 2114f1870..b06f219b4 100644
--- a/ui/widgets/mouse.js
+++ b/ui/widgets/mouse.js
@@ -179,6 +179,11 @@ return $.widget("ui.mouse", {
this._mouseStop(event);
}
+ if (this._mouseDelayTimer) {
+ clearTimeout(this._mouseDelayTimer);
+ delete this._mouseDelayTimer;
+ }
+
mouseHandled = false;
return false;
},