mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 12:03:54 +00:00
fixes #63
This commit is contained in:
parent
377f00caa7
commit
539b4cebde
4
index.js
4
index.js
|
@ -376,14 +376,14 @@ const TabPrivate = {
|
||||||
},
|
},
|
||||||
|
|
||||||
initTabClickHandler: function () {
|
initTabClickHandler: function () {
|
||||||
// Click
|
// Mouse up
|
||||||
const tabClickHandler = function (e) {
|
const tabClickHandler = function (e) {
|
||||||
if (this.isClosed) return;
|
if (this.isClosed) return;
|
||||||
if (e.which === 2) {
|
if (e.which === 2) {
|
||||||
this.close();
|
this.close();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.tab.addEventListener("click", tabClickHandler.bind(this), false);
|
this.tab.addEventListener("mouseup", tabClickHandler.bind(this), false);
|
||||||
// Mouse down
|
// Mouse down
|
||||||
const tabMouseDownHandler = function (e) {
|
const tabMouseDownHandler = function (e) {
|
||||||
if (this.isClosed) return;
|
if (this.isClosed) return;
|
||||||
|
|
Loading…
Reference in a new issue