File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class MainContainer extends Component {
48
48
const { snapshots, snapshotIndex } = this . state ;
49
49
if ( snapshots . length > 0 && snapshotIndex > 0 ) {
50
50
const newIndex = snapshotIndex - 1 ;
51
-
51
+ this . handleJumpSnapshot ( newIndex ) ;
52
52
this . setState ( { snapshotIndex : newIndex } ) ;
53
53
}
54
54
}
@@ -57,7 +57,7 @@ class MainContainer extends Component {
57
57
const { snapshots, snapshotIndex } = this . state ;
58
58
if ( snapshotIndex < snapshots . length - 1 ) {
59
59
const newIndex = snapshotIndex + 1 ;
60
-
60
+ this . handleJumpSnapshot ( newIndex ) ;
61
61
this . setState ( { snapshotIndex : newIndex } ) ;
62
62
}
63
63
}
@@ -67,7 +67,7 @@ class MainContainer extends Component {
67
67
const { snapshots, snapshotIndex } = this . state ;
68
68
if ( snapshotIndex < snapshots . length - 1 ) {
69
69
const newIndex = snapshotIndex + 1 ;
70
-
70
+ this . handleJumpSnapshot ( newIndex ) ;
71
71
this . setState ( { snapshotIndex : newIndex } ) ;
72
72
} else return ;
73
73
} , 1000 )
You can’t perform that action at this time.
0 commit comments