mirror of
https://github.com/wolfpld/tracy
synced 2025-05-02 13:43:52 +00:00
Stop playback when frame is changed with mouse scroll.
This commit is contained in:
parent
9757fcc0ef
commit
6f126ce0f5
@ -15722,6 +15722,7 @@ void View::DrawPlayback()
|
|||||||
if( tmp < 1 ) tmp = 1;
|
if( tmp < 1 ) tmp = 1;
|
||||||
else if( (uint32_t)tmp > ficnt ) tmp = ficnt;
|
else if( (uint32_t)tmp > ficnt ) tmp = ficnt;
|
||||||
SetPlaybackFrame( uint32_t( tmp - 1 ) );
|
SetPlaybackFrame( uint32_t( tmp - 1 ) );
|
||||||
|
m_playback.pause = true;
|
||||||
}
|
}
|
||||||
ImGui::SliderFloat( "Playback speed", &m_playback.speed, 0.1f, 4, "%.2f" );
|
ImGui::SliderFloat( "Playback speed", &m_playback.speed, 0.1f, 4, "%.2f" );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user