From fe5e33a0ee36279cfc55868353f23219653e8de3 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 14 Mar 2017 15:42:42 +0100 Subject: [PATCH] Fix loss of presentation position when updating slides --- www/slide/slide.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/slide/slide.js b/www/slide/slide.js index 0e2089d74..7cbcad480 100644 --- a/www/slide/slide.js +++ b/www/slide/slide.js @@ -176,7 +176,7 @@ define([ var old = Slide.content; Slide.content = content.replace(/\n\s*\-\-\-\s*\n/g, '\n\n'+separator+'\n\n'); if (old !== Slide.content) { - draw(); + draw(Slide.index); return; } change(Slide.lastIndex, Slide.index);