From 4c69b21a29b8459eb0c8e9ac5efde7ef2446c641 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 13 Oct 2022 21:22:46 +0200 Subject: [PATCH] Reverse mouse buttons for jumping in symbol view. --- server/TracySourceView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 9323cb6b..726d5b5f 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -3352,7 +3352,7 @@ void SourceView::RenderLine( const Tokenizer::Line& line, int lineNum, const Add if( !mouseHandled && ( ImGui::IsMouseClicked( 0 ) || ImGui::IsMouseClicked( 1 ) ) ) { m_displayMode = DisplayMixed; - SelectLine( lineNum, worker, ImGui::IsMouseClicked( 1 ) ); + SelectLine( lineNum, worker, ImGui::IsMouseClicked( 0 ) ); } else { @@ -3794,7 +3794,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr { if( m_source.filename() == fileName ) { - if( ImGui::IsMouseClicked( 1 ) ) m_targetLine = srcline; + if( ImGui::IsMouseClicked( 0 ) ) m_targetLine = srcline; SelectLine( srcline, &worker, false ); m_displayMode = DisplayMixed; }