Skip to content

Commit 6747a4d

Browse files
v-einhoffstadt
authored andcommitted
fix (mvTooltip): Event handlers on tooltips do work now (e.g. item_visible handler).
1 parent 398528a commit 6747a4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mvBasicWidgets.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6255,7 +6255,11 @@ DearPyGui::draw_tooltip(ImDrawList* drawlist, mvAppItem& item)
62556255
{
62566256
tooltip->hovered_last_frame = false;
62576257
item.state.visible = false;
6258+
item.state.lastFrameUpdate = GContext->frame;
6259+
// TODO: should we reset rectSize and contextRegionAvail?
62586260
}
6261+
if (item.handlerRegistry)
6262+
item.handlerRegistry->checkEvents(&item.state);
62596263
}
62606264

62616265
void

0 commit comments

Comments
 (0)