mirror of
https://github.com/wolfpld/tracy
synced 2025-05-09 16:23:54 +00:00
Fix impossible zoom animation.
This commit is contained in:
parent
310203101f
commit
1cf168c95e
@ -6075,6 +6075,11 @@ void View::ZoomToZone( const GpuEvent& ev )
|
|||||||
|
|
||||||
void View::ZoomToRange( int64_t start, int64_t end )
|
void View::ZoomToRange( int64_t start, int64_t end )
|
||||||
{
|
{
|
||||||
|
if( start == end )
|
||||||
|
{
|
||||||
|
end = start + 1;
|
||||||
|
}
|
||||||
|
|
||||||
m_pause = true;
|
m_pause = true;
|
||||||
m_highlightZoom.active = false;
|
m_highlightZoom.active = false;
|
||||||
m_zoomAnim.active = true;
|
m_zoomAnim.active = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user