From 5d2f2beb53cfc0f90e3bd8567cc2dc180423d3b7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 6 Nov 2017 01:04:49 +0100 Subject: [PATCH] Increase zoom speed. --- server/TracyView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index c6c005ad..9a1767bb 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1811,13 +1811,13 @@ void View::HandleZoneViewMouse( int64_t timespan, const ImVec2& wpos, float w, d const auto p2 = timespan - p1; if( wheel > 0 ) { - m_zvStart += int64_t( p1 * 0.2f ); - m_zvEnd -= int64_t( p2 * 0.2f ); + m_zvStart += int64_t( p1 * 0.25 ); + m_zvEnd -= int64_t( p2 * 0.25 ); } else if( timespan < 1000ll * 1000 * 1000 * 60 ) { - m_zvStart -= std::max( int64_t( 1 ), int64_t( p1 * 0.2f ) ); - m_zvEnd += std::max( int64_t( 1 ), int64_t( p2 * 0.2f ) ); + m_zvStart -= std::max( int64_t( 1 ), int64_t( p1 * 0.25 ) ); + m_zvEnd += std::max( int64_t( 1 ), int64_t( p2 * 0.25 ) ); } timespan = m_zvEnd - m_zvStart; pxns = w / double( timespan );