From a7e7f59f966e73e49bdc8badfab14f3a62adf9b7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 4 Mar 2018 18:35:40 +0100 Subject: [PATCH] Zoom-to-zone on middle click on found item. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e3b7bb6f..d2c1ebaf 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2970,6 +2970,10 @@ void View::DrawFindZone() { m_zoneInfoWindow = ev; } + else if( ImGui::IsItemHovered() && ImGui::GetIO().MouseClicked[2] ) + { + ZoomToZone( *ev ); + } ImGui::NextColumn();