Add logging to backwards from forwards logic
This commit is contained in:
parent
3266a4ca14
commit
cc6311a01a
|
@ -58,7 +58,9 @@ intval.init = function () {
|
|||
primed : false //is ready to stop frame
|
||||
}
|
||||
}
|
||||
intval._frame = {}
|
||||
intval._frame = {
|
||||
|
||||
}
|
||||
intval._release = {
|
||||
min : 20,
|
||||
seq : 1000
|
||||
|
@ -293,13 +295,14 @@ intval.frame = function (dir = null, time = null) {
|
|||
intval._state.frame.paused = true
|
||||
setTimeout(intval._pause, intval._state.frame.open)
|
||||
if (dir) {
|
||||
log.info('frame', { pausing : time - intval._state.frame.open })
|
||||
log.info('frame', { pausing : time + intval._state.frame.open })
|
||||
setTimeout( () => {
|
||||
log.info('frame', 'restarting')
|
||||
intval._state.frame.paused = false
|
||||
intval._startFwd()
|
||||
}, time + intval._state.frame.closed)
|
||||
} else {
|
||||
log.info('frame', { pausing : time + intval._state.frame.open })
|
||||
setTimeout( () => {
|
||||
log.info('frame', 'restarting')
|
||||
intval._state.frame.paused = false
|
||||
|
|
Loading…
Reference in New Issue