mirror of
https://github.com/wolfpld/tracy.git
synced 2026-11-17 05:05:58 +00:00
Merge pull request #1281 from slomp/slomp/fix-zoom-hang
Fix UI hangs due to mouse-wheel zooming
This commit is contained in:
@@ -159,6 +159,7 @@ void View::HandleTimelineMouse( int64_t timespan, const ImVec2& wpos, float w )
|
||||
t0 -= std::max( int64_t( 1 ), int64_t( p1 * mod ) );
|
||||
t1 += std::max( int64_t( 1 ), int64_t( p2 * mod ) );
|
||||
}
|
||||
t1 = std::max(t0, t1);
|
||||
ZoomToRange( t0, t1, !m_worker.IsConnected() || m_viewMode == ViewMode::Paused );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user