Skip to content

Commit f344aea

Browse files
authored
Merge pull request #76 from michaelpelletier/master
Fix step bug introduced in moving onBefore
2 parents 0f60393 + 5b5c389 commit f344aea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/VTour.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ async function nextStep() {
105105
endTour();
106106
return;
107107
}
108-
_CurrentStep.nextStep = _CurrentStep.currentStep++;
108+
_CurrentStep.nextStep = _CurrentStep.currentStep + 1;
109109
updatePosition();
110110
}
111111
@@ -120,7 +120,7 @@ async function lastStep() {
120120
endTour();
121121
return;
122122
}
123-
_CurrentStep.nextStep = _CurrentStep.currentStep++;
123+
_CurrentStep.nextStep = _CurrentStep.currentStep + 1;
124124
updatePosition();
125125
}
126126

0 commit comments

Comments
 (0)