This commit is contained in:
maxos 2018-08-06 19:26:46 -07:00
parent 377f00caa7
commit 539b4cebde

View file

@ -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;