mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-06 07:15:39 +00:00
Fixed an issue where system view videos were stopped instead of paused when navigating between systems.
This commit is contained in:
parent
4159fc8b9a
commit
e248299fb4
|
@ -56,6 +56,7 @@ SystemView::~SystemView()
|
||||||
void SystemView::onShow()
|
void SystemView::onShow()
|
||||||
{
|
{
|
||||||
finishAnimation(0);
|
finishAnimation(0);
|
||||||
|
stopViewVideos();
|
||||||
mFadeOpacity = 0.0f;
|
mFadeOpacity = 0.0f;
|
||||||
mTransitionAnim = false;
|
mTransitionAnim = false;
|
||||||
}
|
}
|
||||||
|
@ -274,7 +275,7 @@ void SystemView::onCursorChanged(const CursorState& state)
|
||||||
|
|
||||||
if (mLastCursor >= 0 && mLastCursor <= static_cast<int>(mSystemElements.size())) {
|
if (mLastCursor >= 0 && mLastCursor <= static_cast<int>(mSystemElements.size())) {
|
||||||
for (auto& video : mSystemElements[mLastCursor].videoComponents)
|
for (auto& video : mSystemElements[mLastCursor].videoComponents)
|
||||||
video->stopVideoPlayer();
|
video->pauseVideoPlayer();
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is needed to avoid erratic camera movements during extreme navigation input when using
|
// This is needed to avoid erratic camera movements during extreme navigation input when using
|
||||||
|
|
Loading…
Reference in a new issue