If statements were eating the frame continuance step. This has been altered by using 0 as the default value for arbitrary exposure frames.

This commit is contained in:
mmcw-dev 2017-10-20 19:53:57 -04:00
parent 43213cc6ce
commit d511ecdfbe
1 changed files with 3 additions and 3 deletions

View File

@ -269,8 +269,8 @@ intval.frame = function (dir = null, time = null) {
if (time === null && intval._state.time !== 0) { if (time === null && intval._state.time !== 0) {
time = intval._state.time time = intval._state.time
} else { } else if (time === null) {
time = 0 time = 0 //default speed
} }
intval._state.frame.start = +new Date() intval._state.frame.start = +new Date()
@ -284,7 +284,7 @@ intval.frame = function (dir = null, time = null) {
} else { } else {
intval._startBwd() intval._startBwd()
} }
if (time !== null && time !== 0) { if (time !== 0) {
setTimeout(intval._pause, intval._state.frame.open) setTimeout(intval._pause, intval._state.frame.open)
if (dir) { if (dir) {
setTimeout(intval._startFwd, (time - intval._state.frame.open)) setTimeout(intval._startFwd, (time - intval._state.frame.open))