Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
seekByArrowKeys = (val) => {//seek using arrow keys or clicking on the track
let currentFrame = this.state.currentFrameTime + val
lottie.goToAndStop(currentFrame,true)
if(!this.state.paused){
lottie.play()
}
}
playPause = () => {
<div> {this.setState({paused:true});lottie.goToAndStop(v.time+1,true)}} style={{padding:'5px 0 5px 50px',borderBottom:'1px solid #ddd'}}> t = {v.time + 1}</div>
{
seekByMouseClick = (val) => {
lottie.goToAndStop(val.x,true)
if(!this.state.paused){
lottie.play()
}
}
seekByArrowKeys = (val) => {//seek using arrow keys or clicking on the track
playPause = () => {
if(this.state.currentView != 2) return
let playButtonState = null
if(this.state.paused){
lottie.goToAndStop(this.state.currentFrameTime,true)
lottie.play()
playButtonState = false
}
else{
lottie.goToAndStop(this.state.currentFrameTime,true)
playButtonState = true
}
this.setState({paused:playButtonState})
}
clearAllChanges = () => {