From c0d385f387da34d7b84d345ffea2a0d6d684ccad Mon Sep 17 00:00:00 2001 From: Sebastian Balcerowiak Date: Tue, 31 Dec 2024 18:28:06 +0100 Subject: [PATCH] disable view if clientX or clientY is negative --- packages/tabs/lib/layout.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/tabs/lib/layout.js b/packages/tabs/lib/layout.js index 0bdd6fc622..ee20888f51 100644 --- a/packages/tabs/lib/layout.js +++ b/packages/tabs/lib/layout.js @@ -14,6 +14,10 @@ module.exports = { test: {}, drag (e) { + if (e.clientX<0 || e.clientY<0) { + this.disableView() + return + } this.lastCoords = e const pane = this.getPaneAt(e) const itemView = this.getItemViewAt(e)