From d1b49cabc6c7de43e88470719b41f3be0db9b115 Mon Sep 17 00:00:00 2001 From: Alex <90tato@gmail.com> Date: Tue, 26 Jun 2018 14:09:40 +0200 Subject: [PATCH] Update presentz-1.3.1.js Fix for when you stop the video and it's not in loop. Now it's calling the listener when you finish and stop, before was calling the pause listener --- dist/presentz-1.3.1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/presentz-1.3.1.js b/dist/presentz-1.3.1.js index 34f85ad..81ed023 100644 --- a/dist/presentz-1.3.1.js +++ b/dist/presentz-1.3.1.js @@ -356,7 +356,7 @@ along with this program. If not, see . listeners = this.presentz.listeners.play; } else if (this.isInPauseState || this.isInFinishState) { this.presentz.stopTimeChecker(); - if (this.isInPauseState) { + if (this.isInPauseState && !this.isInFinishState) { listeners = this.presentz.listeners.pause; } else if (this.isInFinishState) { listeners = this.presentz.listeners.finish;