From fb970170e0d021a571f283130e11b3b3d57690c4 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 25 Sep 2017 23:15:00 +0200 Subject: [PATCH] Increase zone zoom in/out speed. --- server/TracyView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index deb54d38..b328d2a4 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -894,13 +894,13 @@ void View::DrawZones() const auto p2 = timespan - p1; if( wheel > 0 ) { - m_zvStart += int64_t( p1 * 0.1f ); - m_zvEnd -= int64_t( p2 * 0.1f ); + m_zvStart += int64_t( p1 * 0.2f ); + m_zvEnd -= int64_t( p2 * 0.2f ); } else if( timespan < 1000ull * 1000 * 1000 * 60 ) { - m_zvStart -= std::max( int64_t( 1 ), int64_t( p1 * 0.1f ) ); - m_zvEnd += std::max( int64_t( 1 ), int64_t( p2 * 0.1f ) ); + m_zvStart -= std::max( int64_t( 1 ), int64_t( p1 * 0.2f ) ); + m_zvEnd += std::max( int64_t( 1 ), int64_t( p2 * 0.2f ) ); } timespan = m_zvEnd - m_zvStart; pxns = w / double( timespan );