Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.

Commit 7625560

Browse files
committed
finalized fast forward and rewind buttons
1 parent b94ac34 commit 7625560

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/events.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,11 @@ modeBtn.onclick = function() {
539539
rewindBtn.onclick = function() {
540540
if (debugDataTime > 0) {
541541
debugDataTime--;
542+
debugTimeSlider.value = debugDataTime;
543+
renderField();
544+
renderDebug();
545+
debugDataTime--;
546+
debugTimeSlider.value--;
542547
}
543548
};
544549

@@ -566,6 +571,11 @@ pauseBtn.onclick = function() {
566571
forwardBtn.onclick = function() {
567572
if (debugDataTime < debugDataList.length-1) {
568573
debugDataTime++;
574+
debugTimeSlider.value = debugDataTime;
575+
renderField();
576+
renderDebug();
577+
debugDataTime--;
578+
debugTimeSlider.value--;
569579
}
570580
};
571581

0 commit comments

Comments
 (0)