From cbb45160afed6f68fb22687d2962511597ea7440 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 5 Aug 2018 01:23:00 +0200 Subject: [PATCH] Disable zoom anim on user interaction. --- server/TracyView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index a0d33114..ab3389bc 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -857,6 +857,7 @@ void View::HandleZoneViewMouse( int64_t timespan, const ImVec2& wpos, float w, d if( ImGui::IsMouseDragging( 1, 0 ) ) { + m_zoomAnim.active = false; m_pause = true; const auto delta = ImGui::GetMouseDragDelta( 1, 0 ); const auto dpx = int64_t( delta.x * nspx ); @@ -877,6 +878,7 @@ void View::HandleZoneViewMouse( int64_t timespan, const ImVec2& wpos, float w, d const auto wheel = io.MouseWheel; if( wheel != 0 ) { + m_zoomAnim.active = false; m_pause = true; const double mouse = io.MousePos.x - wpos.x; const auto p = mouse / w;