feature(ui) - timeline rewind
This commit is contained in:
parent
6cab849cfb
commit
f1c9d80eb4
2 changed files with 5 additions and 2 deletions
|
|
@ -253,8 +253,8 @@ export default class Controls extends React.Component {
|
|||
const inspectorMode = bottomBlock === INSPECTOR;
|
||||
|
||||
return (
|
||||
<div className={ cn(styles.controls, {'px-5' : live}) }>
|
||||
<Timeline jump={ this.props.jump } />
|
||||
<div className={ cn(styles.controls, {'px-5 pt-0' : live}) }>
|
||||
{ !live && <Timeline jump={ this.props.jump } /> }
|
||||
{ !fullscreen &&
|
||||
<div className={ styles.buttons } data-is-live={ live }>
|
||||
{ !live ?
|
||||
|
|
|
|||
|
|
@ -152,6 +152,9 @@ export default class Player extends MessageDistributor {
|
|||
}
|
||||
|
||||
jump(time = getState().time, index) {
|
||||
const { live } = getState();
|
||||
if (live) return;
|
||||
|
||||
if (getState().playing) {
|
||||
cancelAnimationFrame(this._animationFrameRequestId);
|
||||
// this._animationFrameRequestId = requestAnimationFrame(() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue