Reverse mouse buttons for jumping in symbol view.

This commit is contained in:
Bartosz Taudul 2022-10-13 21:22:46 +02:00
parent 1419283a91
commit 4c69b21a29
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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;
}