Push dev work to master #2
|
@ -46,7 +46,6 @@ intval.init = function () {
|
|||
time : 0, //length of frame, in ms
|
||||
delay : 0, //delay before start of frame, in ms
|
||||
open : 250, //delay before pausing frame in open state
|
||||
pad : 450,
|
||||
expected : 630 //expected length of frame, in ms
|
||||
},
|
||||
release : {
|
||||
|
@ -296,13 +295,13 @@ intval.frame = function (dir = null, time = null) {
|
|||
log.info('frame', 'restarting')
|
||||
intval._state.frame.paused = false
|
||||
intval._startFwd()
|
||||
}, time + intval._state.frame.pad)
|
||||
}, time + intval._state.frame.open)
|
||||
} else {
|
||||
setTimeout( () => {
|
||||
log.info('frame', 'restarting')
|
||||
intval._state.frame.paused = false
|
||||
intval._startBwd()
|
||||
}, time + intval._state.frame.pad)
|
||||
}, time + intval._state.frame.open)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue