Fixed an issue where system view videos were stopped instead of paused when navigating between systems.

This commit is contained in:
Leon Styhre 2023-02-21 18:47:05 +01:00
parent 4159fc8b9a
commit e248299fb4

View file

@ -56,6 +56,7 @@ SystemView::~SystemView()
void SystemView::onShow()
{
finishAnimation(0);
stopViewVideos();
mFadeOpacity = 0.0f;
mTransitionAnim = false;
}
@ -274,7 +275,7 @@ void SystemView::onCursorChanged(const CursorState& state)
if (mLastCursor >= 0 && mLastCursor <= static_cast<int>(mSystemElements.size())) {
for (auto& video : mSystemElements[mLastCursor].videoComponents)
video->stopVideoPlayer();
video->pauseVideoPlayer();
}
// This is needed to avoid erratic camera movements during extreme navigation input when using