mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Increase zoom speed.
This commit is contained in:
parent
25dc92f888
commit
5d2f2beb53
@ -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 );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user