Log variables when pausing frames.

This commit is contained in:
mmcw-dev 2017-10-20 19:58:16 -04:00
parent d511ecdfbe
commit 736a0c858b
1 changed files with 6 additions and 2 deletions

View File

@ -287,9 +287,13 @@ intval.frame = function (dir = null, time = null) {
if (time !== 0) {
setTimeout(intval._pause, intval._state.frame.open)
if (dir) {
setTimeout(intval._startFwd, (time - intval._state.frame.open))
log.info('frame', { pausing : time - intval._state.frame.open })
setTimeout(() => {
log.info('frame', 'restarting after pause')
intval._startFwd()
}, time - intval._state.frame.open)
} else {
setTimeout(intval._startBwd, (time - intval._state.frame.open))
setTimeout(intval._startBwd, time - intval._state.frame.open)
}
}
}