Skip to content

Commit

Permalink
fix(client): added a guard to prevent JS errors when swiping too fast
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Moss committed Jul 26, 2024
1 parent 677e0cc commit 7e3e7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ const App = () => {
// Case when a video is scroll-snapped and occupies the screen
if (entry.isIntersecting) {
visibleIndex = currentIndex;
videoElement.play();
videoElement.play().catch(_ => {});
_updatePageTitle(videos[currentIndex]);
}
// Case when a video is off-screen or being scrolled in / out of the screen
Expand Down

0 comments on commit 7e3e7d3

Please sign in to comment.