mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Don't activate tab when clicking its close button
This commit is contained in:
parent
7dd4b2aa98
commit
c26d32be47
1
index.js
1
index.js
|
@ -278,6 +278,7 @@ const TabPrivate = {
|
||||||
const tabMouseDownHandler = function (e) {
|
const tabMouseDownHandler = function (e) {
|
||||||
if (this.isClosed) return;
|
if (this.isClosed) return;
|
||||||
if (e.which === 1) {
|
if (e.which === 1) {
|
||||||
|
if (e.target.matches("button")) return;
|
||||||
this.activate();
|
this.activate();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue