Skip to content

Commit

Permalink
Proper way to detect mouse click.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpld committed Sep 28, 2024
1 parent e8a9d22 commit 5caeffa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion profiler/src/profiler/TracyView_FlameGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 );
}
Expand Down

0 comments on commit 5caeffa

Please sign in to comment.