File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -157,16 +157,20 @@ bool CreateFilterBrowser::DoRender()
157
157
ImGui::InvisibleButton (it.first .c_str (), buttonsize);
158
158
159
159
// Tooltip for the button
160
- if (ImGui::BeginItemTooltip ())
160
+ // Don't do a tooltip if the mouse is down (workaround for https://github.com/ocornut/imgui/issues/7922)
161
+ if (!ImGui::IsMouseDown (ImGuiMouseButton_Left))
161
162
{
162
- string tip = it.first + " \n " ;
163
- tip += " \n " ;
164
- // TODO: filter-specific help text
163
+ if (ImGui::BeginItemTooltip ())
164
+ {
165
+ string tip = it.first + " \n " ;
166
+ tip += " \n " ;
167
+ // TODO: filter-specific help text
165
168
166
- tip += " Drag to filter graph to instantiate this block" ;
169
+ tip += " Drag to filter graph to instantiate this block" ;
167
170
168
- ImGui::TextUnformatted (tip.c_str ());
169
- ImGui::EndTooltip ();
171
+ ImGui::TextUnformatted (tip.c_str ());
172
+ ImGui::EndTooltip ();
173
+ }
170
174
}
171
175
172
176
// Make it draggable
You can’t perform that action at this time.
0 commit comments