fix(web): memory pause autoplay when scrolling down (#2923)

This commit is contained in:
Alex 2023-06-23 11:13:05 -05:00 committed by GitHub
parent 6e62558d81
commit b2dc7adf3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@
$: paused ? pause() : play();
// 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.
$: $progress === 1 && toNext();