From 39debea9905559284b8be4817b96a1683196528c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 11 Jul 2020 14:11:13 +0200 Subject: [PATCH] Middle-click on time span sets the view range to entire capture. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 51823e7a..c041e93f 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -691,6 +691,10 @@ bool View::DrawImpl() ImGui::BeginTooltip(); ImGui::Text( "Time span" ); ImGui::EndTooltip(); + if( ImGui::IsItemClicked( 2 ) ) + { + ZoomToRange( 0, m_worker.GetLastTime() ); + } } ImGui::SameLine(); dx = ImGui::GetCursorPosX() - cx;