From abad5574f303dc174684fa83c805123e905f55c2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 16 Dec 2018 20:04:45 +0100 Subject: [PATCH] Middle click on lock event to zoom to it. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index eaa4438b..f49196c5 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2792,6 +2792,10 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos, { m_lockInfoWindow = v.first; } + if( ImGui::IsMouseClicked( 2 ) ) + { + ZoomToRange( t0, t1 ); + } if( condensed > 1 ) {