From 539b4cebde6a62ba3a74f504c3b8a6a52ccc0cc5 Mon Sep 17 00:00:00 2001 From: maxos Date: Mon, 6 Aug 2018 19:26:46 -0700 Subject: [PATCH] fixes #63 --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index f0e6f4a..22bc89b 100644 --- a/index.js +++ b/index.js @@ -376,14 +376,14 @@ const TabPrivate = { }, initTabClickHandler: function () { - // Click + // Mouse up const tabClickHandler = function (e) { if (this.isClosed) return; if (e.which === 2) { this.close(); } }; - this.tab.addEventListener("click", tabClickHandler.bind(this), false); + this.tab.addEventListener("mouseup", tabClickHandler.bind(this), false); // Mouse down const tabMouseDownHandler = function (e) { if (this.isClosed) return;