Skip to content

Commit 65c77be

Browse files
committed
forward button and backward button change dom accordingly
1 parent 74566ba commit 65c77be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/containers/MainContainer.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class MainContainer extends Component {
4848
const { snapshots, snapshotIndex } = this.state;
4949
if(snapshots.length>0 && snapshotIndex>0) {
5050
const newIndex = snapshotIndex-1;
51-
51+
this.handleJumpSnapshot(newIndex);
5252
this.setState({ snapshotIndex: newIndex });
5353
}
5454
}
@@ -57,7 +57,7 @@ class MainContainer extends Component {
5757
const { snapshots, snapshotIndex } = this.state;
5858
if(snapshotIndex<snapshots.length-1){
5959
const newIndex = snapshotIndex+1;
60-
60+
this.handleJumpSnapshot(newIndex);
6161
this.setState({ snapshotIndex: newIndex });
6262
}
6363
}
@@ -67,7 +67,7 @@ class MainContainer extends Component {
6767
const { snapshots, snapshotIndex } = this.state;
6868
if(snapshotIndex<snapshots.length-1){
6969
const newIndex = snapshotIndex+1;
70-
70+
this.handleJumpSnapshot(newIndex);
7171
this.setState({ snapshotIndex: newIndex });
7272
} else return;
7373
},1000)

0 commit comments

Comments
 (0)