From 9b82001a70a6273df037db9e602080011d0fd7ba Mon Sep 17 00:00:00 2001 From: Liran Sharir Date: Wed, 22 Jul 2015 15:58:47 +0300 Subject: [PATCH] Mouse: Fix delay timeout clearing upon mouseup Fixes #14458 Closes gh-1579 --- ui/widgets/mouse.js | 5 +++++ 1 file changed, 5 insertions(+) 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; }, -- 2.39.5