From 497e73182aa4e1256a4d8ead06b651018e4f6efb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 9 Apr 2020 23:28:51 +0200 Subject: [PATCH] Ditto for source navigation. --- server/TracySourceView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 52878d2b..ef652378 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -995,11 +995,11 @@ void SourceView::RenderAsmLine( const AsmLine& line, uint32_t ipcnt, uint32_t ip ImGui::Text( "%s:%i", fileName, srcline ); ImGui::EndTooltip(); if( m_font ) ImGui::PushFont( m_font ); - if( ImGui::IsItemClicked() ) + if( ImGui::IsItemClicked( 0 ) || ImGui::IsItemClicked( 1 ) ) { if( m_file == fileName ) { - m_targetLine = srcline; + if( ImGui::IsMouseClicked( 1 ) ) m_targetLine = srcline; SelectLine( srcline, &worker, false ); m_displayMode = DisplayMixed; }