From d511ecdfbe2e56d88e6e43254f8899374a89670d Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Fri, 20 Oct 2017 19:53:57 -0400 Subject: [PATCH] If statements were eating the frame continuance step. This has been altered by using 0 as the default value for arbitrary exposure frames. --- lib/intval/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/intval/index.js b/lib/intval/index.js index 20e7459..862b535 100644 --- a/lib/intval/index.js +++ b/lib/intval/index.js @@ -269,8 +269,8 @@ intval.frame = function (dir = null, time = null) { if (time === null && intval._state.time !== 0) { time = intval._state.time - } else { - time = 0 + } else if (time === null) { + time = 0 //default speed } intval._state.frame.start = +new Date() @@ -284,7 +284,7 @@ intval.frame = function (dir = null, time = null) { } else { intval._startBwd() } - if (time !== null && time !== 0) { + if (time !== 0) { setTimeout(intval._pause, intval._state.frame.open) if (dir) { setTimeout(intval._startFwd, (time - intval._state.frame.open))