Skip to content

Commit

Permalink
Fix pause video on cancel while picking point
Browse files Browse the repository at this point in the history
If we picked a point and cancel while still in the picking point state
the video would not pause so the list of sections would be shown with
the video still playing.
  • Loading branch information
mauriciofierrom committed Nov 29, 2024
1 parent e576ab9 commit be650a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/controllers/player/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export class PickingPointState extends PlayerState {

reset() {
this.context.loopManager.clear()
this.context.player.pause()
this.context.state = this.context.readyState
}
}

0 comments on commit be650a8

Please sign in to comment.