From be650a8d336d3575146baa60612810ecd1b3f263 Mon Sep 17 00:00:00 2001 From: Mauricio Fierro Date: Thu, 28 Nov 2024 19:50:34 -0500 Subject: [PATCH] Fix pause video on cancel while picking point 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. --- app/javascript/controllers/player/state.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/controllers/player/state.js b/app/javascript/controllers/player/state.js index 828be48..4a554d0 100644 --- a/app/javascript/controllers/player/state.js +++ b/app/javascript/controllers/player/state.js @@ -87,6 +87,7 @@ export class PickingPointState extends PlayerState { reset() { this.context.loopManager.clear() + this.context.player.pause() this.context.state = this.context.readyState } }