After investigations, it seems that the usage of state.pos and state.posMax was wrong. Roles shouldn't update state.posMax in common cases, and setting state.pos or state.posMax between state.push(...)s takes no effect. This PR removes the wrong/unnecessary settings of state.pos or state.posMax.
Description
After investigations, it seems that the usage of
state.pos
andstate.posMax
was wrong. Roles shouldn't updatestate.posMax
in common cases, and settingstate.pos
orstate.posMax
betweenstate.push(...)
s takes no effect. This PR removes the wrong/unnecessary settings ofstate.pos
orstate.posMax
.Linked Issues
fix #10. fix https://github.com/slidevjs/slidev/issues/1625.
should close PR #9.
Additional context
Couldn't find docs about
state.pos
orstate.posMax
anywhere. So I cannot guarantee the correctness ðŸ˜