mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Increase zone zoom in/out speed.
This commit is contained in:
parent
84052c622f
commit
fb970170e0
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user