Increase zone zoom in/out speed.

This commit is contained in:
Bartosz Taudul 2017-09-25 23:15:00 +02:00
parent 84052c622f
commit fb970170e0

View File

@ -894,13 +894,13 @@ void View::DrawZones()
const auto p2 = timespan - p1; const auto p2 = timespan - p1;
if( wheel > 0 ) if( wheel > 0 )
{ {
m_zvStart += int64_t( p1 * 0.1f ); m_zvStart += int64_t( p1 * 0.2f );
m_zvEnd -= int64_t( p2 * 0.1f ); m_zvEnd -= int64_t( p2 * 0.2f );
} }
else if( timespan < 1000ull * 1000 * 1000 * 60 ) else if( timespan < 1000ull * 1000 * 1000 * 60 )
{ {
m_zvStart -= std::max( int64_t( 1 ), int64_t( p1 * 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.1f ) ); m_zvEnd += std::max( int64_t( 1 ), int64_t( p2 * 0.2f ) );
} }
timespan = m_zvEnd - m_zvStart; timespan = m_zvEnd - m_zvStart;
pxns = w / double( timespan ); pxns = w / double( timespan );