Skip to content

Commit

Permalink
Fixes call to play (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaoster authored Aug 9, 2023
1 parent ae4a220 commit 256f696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ScrollyVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ class ScrollyVideo {
if (!jump && this.transitioning) return;

// Play the video if we are in video mode
if (!this.canvas) this.video.play();
if (!this.canvas && !this.video.paused) this.video.play();

// Set transitioning state to true and begin transition
this.transitioning = true;
Expand Down

0 comments on commit 256f696

Please sign in to comment.