Set unique ID for frame list invisible buttons.

This commit is contained in:
Bartosz Taudul 2024-09-22 13:00:30 +02:00
parent 8b9da2efba
commit 86270dac6d
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -106,7 +106,9 @@ void View::DrawTimelineFrames( const FrameData& frames )
const auto ty025 = ty * 0.25f;
const auto ty05 = round( ty * 0.5f );
ImGui::PushID( &frames );
ImGui::InvisibleButton( "##zoneFrames", ImVec2( w, ty ) );
ImGui::PopID();
bool hover = ImGui::IsItemHovered();
auto timespan = m_vd.zvEnd - m_vd.zvStart;