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
|
primed : false //is ready to stop frame
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
intval._frame = {}
|
intval._frame = {
|
||||||
|
|
||||||
|
}
|
||||||
intval._release = {
|
intval._release = {
|
||||||
min : 20,
|
min : 20,
|
||||||
seq : 1000
|
seq : 1000
|
||||||
|
@ -293,13 +295,14 @@ intval.frame = function (dir = null, time = null) {
|
||||||
intval._state.frame.paused = true
|
intval._state.frame.paused = true
|
||||||
setTimeout(intval._pause, intval._state.frame.open)
|
setTimeout(intval._pause, intval._state.frame.open)
|
||||||
if (dir) {
|
if (dir) {
|
||||||
log.info('frame', { pausing : time - intval._state.frame.open })
|
log.info('frame', { pausing : time + intval._state.frame.open })
|
||||||
setTimeout( () => {
|
setTimeout( () => {
|
||||||
log.info('frame', 'restarting')
|
log.info('frame', 'restarting')
|
||||||
intval._state.frame.paused = false
|
intval._state.frame.paused = false
|
||||||
intval._startFwd()
|
intval._startFwd()
|
||||||
}, time + intval._state.frame.closed)
|
}, time + intval._state.frame.closed)
|
||||||
} else {
|
} else {
|
||||||
|
log.info('frame', { pausing : time + intval._state.frame.open })
|
||||||
setTimeout( () => {
|
setTimeout( () => {
|
||||||
log.info('frame', 'restarting')
|
log.info('frame', 'restarting')
|
||||||
intval._state.frame.paused = false
|
intval._state.frame.paused = false
|
||||||
|
|
Loading…
Reference in New Issue