Skip to content

v2.0.2

Compare
Choose a tag to compare
@jstejada jstejada released this 17 Oct 15:03
· 21 commits to master since this release

v2.0.2 (10/17/17)

  • Fixes:
    Keep typing scheduling invariant from version < 2
    Before version 2, characters would be typed in the following order:
  1. Update characters and lines state (i.e. render character in a line)
  2. After being rendered, call onCharacterTyped
  3. Generate a new delay for the given line and character that was just rendered
  4. Set a timeout with the generated delay

After the introduction of Backspace and Delay elements in v2, the order
in which characters were typed was changed, changing the invariant of
when the delayGenerator was called and how delays were scheduled.
This was due to conflation between the newly introduced delays and the
normal typing scheduling.