From a34bb97d78bd9f1cbd7c7a2a513c1948a5feab2c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 4 Mar 2018 18:42:18 +0100 Subject: [PATCH] Unify zone children and find zone list behavior. --- server/TracyView.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 3c79874f..f841393c 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2964,9 +2964,14 @@ void View::DrawFindZone() { m_zoneInfoWindow = ev; } - else if( ImGui::IsItemHovered() && ImGui::GetIO().MouseClicked[2] ) + if( ImGui::IsItemHovered() ) { - ZoomToZone( *ev ); + m_zoneHighlight = ev; + if( ImGui::IsMouseClicked( 2 ) ) + { + ZoomToZone( *ev ); + } + ZoneTooltip( *ev ); } ImGui::NextColumn();