1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Middle-click on time span sets the view range to entire capture.

This commit is contained in:
Bartosz Taudul 2020-07-11 14:11:13 +02:00
parent 0f9597aee8
commit 39debea990

View File

@ -691,6 +691,10 @@ bool View::DrawImpl()
ImGui::BeginTooltip(); ImGui::BeginTooltip();
ImGui::Text( "Time span" ); ImGui::Text( "Time span" );
ImGui::EndTooltip(); ImGui::EndTooltip();
if( ImGui::IsItemClicked( 2 ) )
{
ZoomToRange( 0, m_worker.GetLastTime() );
}
} }
ImGui::SameLine(); ImGui::SameLine();
dx = ImGui::GetCursorPosX() - cx; dx = ImGui::GetCursorPosX() - cx;