Proper way to detect mouse click.

This commit is contained in:
Bartosz Taudul 2024-09-28 15:30:41 +02:00
parent e8a9d228c5
commit 5caeffa19a
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -3,6 +3,7 @@
#include "TracyColor.hpp"
#include "TracyEvent.hpp"
#include "TracyImGui.hpp"
#include "TracyMouse.hpp"
#include "TracyPrint.hpp"
#include "TracyVector.hpp"
#include "TracyView.hpp"
@ -343,7 +344,7 @@ void View::DrawFlameGraphItem( const FlameGraphItem& item, FlameGraphContext& ct
}
ImGui::EndTooltip();
if( ImGui::IsMouseClicked( 0 ) )
if( IsMouseClicked( 0 ) )
{
m_findZone.ShowZone( item.srcloc, slName );
}