From 7aa3d60d8608059e9fd53f02384e7066d8563c83 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Tue, 12 Sep 2023 21:29:18 -0400 Subject: [PATCH] fix bug in tab widget how did i not notice this before --- minigui.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/minigui.d b/minigui.d index 4e45766..580b89e 100644 --- a/minigui.d +++ b/minigui.d @@ -6849,8 +6849,9 @@ class TabMessageWidget : Widget { createWin32Window(this, WC_TABCONTROL, "", 0); } else version(custom_widgets) { addEventListener((ClickEvent event) { - if(event.target !is this && this.container !is null && event.target !is this.container) return; - if(event.clientY < tabBarHeight) { + if(event.target !is this) + return; + if(event.clientY >= 0 && event.clientY < tabBarHeight) { auto t = (event.clientX / tabWidth); if(t >= 0 && t < tabs.length) { currentTab_ = t;