fix(web): memory pause autoplay when scrolling down (#2923)
This commit is contained in:
parent
6e62558d81
commit
b2dc7adf3b
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@
|
||||||
$: paused ? pause() : play();
|
$: paused ? pause() : play();
|
||||||
|
|
||||||
// Progress should be paused when it's no longer possible to advance.
|
// Progress should be paused when it's no longer possible to advance.
|
||||||
$: paused ||= !canGoForward;
|
$: paused ||= !canGoForward || galleryInView;
|
||||||
|
|
||||||
// Advance to the next asset or memory when progress is complete.
|
// Advance to the next asset or memory when progress is complete.
|
||||||
$: $progress === 1 && toNext();
|
$: $progress === 1 && toNext();
|
||||||
|
|
Loading…
Reference in a new issue