Skip to content

Commit

Permalink
fixes an issue with pluralsight causing speed to revert back to 1, af…
Browse files Browse the repository at this point in the history
…ter passing 2 (igrigorik#750)

affects igrigorik#661

What has been done?
- Events being fired by both the video provider as well as VideoSpeed was causing too many events to occur, causing the disregarding of VideoSpeed's force event.  To prevent this, we immediately stop the immediate propagation of the event instead.
  • Loading branch information
MajinBui authored Jan 26, 2021
1 parent d8333fb commit 59d577f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ function setupListener() {
} else {
video.playbackRate = tc.settings.lastSpeed;
}
event.stopImmediatePropagation();
} else {
updateSpeedFromEvent(video);
}
Expand Down

0 comments on commit 59d577f

Please sign in to comment.