Animate frame selection expansion.

This commit is contained in:
Bartosz Taudul 2019-03-06 01:45:39 +01:00
parent 4b1c0ff0c5
commit cee625b375

View File

@ -1247,8 +1247,9 @@ void View::DrawFrames()
} }
else if( ImGui::IsMouseDragging( 0 ) ) else if( ImGui::IsMouseDragging( 0 ) )
{ {
m_zvStart = std::min( m_zvStart, m_worker.GetFrameBegin( *m_frames, sel ) ); const auto t0 = std::min( m_zvStart, m_worker.GetFrameBegin( *m_frames, sel ) );
m_zvEnd = std::max( m_zvEnd, m_worker.GetFrameEnd( *m_frames, sel + group - 1 ) ); const auto t1 = std::max( m_zvEnd, m_worker.GetFrameEnd( *m_frames, sel + group - 1 ) );
ZoomToRange( t0, t1 );
} }
} }