From b1f0524d27d298b63c7a033a69dce2cfbb28bf68 Mon Sep 17 00:00:00 2001 From: Vladimir Ein Date: Wed, 10 Apr 2024 12:27:54 +0500 Subject: [PATCH] fix (mvTooltip): Event handlers on tooltips do work now (e.g. item_visible handler). --- src/mvBasicWidgets.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mvBasicWidgets.cpp b/src/mvBasicWidgets.cpp index b7b66aae3..6cf58f269 100644 --- a/src/mvBasicWidgets.cpp +++ b/src/mvBasicWidgets.cpp @@ -6255,7 +6255,11 @@ DearPyGui::draw_tooltip(ImDrawList* drawlist, mvAppItem& item) { tooltip->hovered_last_frame = false; item.state.visible = false; + item.state.lastFrameUpdate = GContext->frame; + // TODO: should we reset rectSize and contextRegionAvail? } + if (item.handlerRegistry) + item.handlerRegistry->checkEvents(&item.state); } void