tameemsafi / typewriterjs

A simple yet powerful native javascript plugin for a cool typewriter effect.
https://www.npmjs.com/package/typewriter-effect
MIT License
2.46k stars 220 forks source link

Bug when deleting chars in subsequent run, even on the main site #197

Closed ovicrisan closed 1 year ago

ovicrisan commented 1 year ago

Even on the sample page at https://safi.me.uk/typewriterjs/ in the 'Results' tab there is a bug when running 2nd or more time - deleteChars() is deleting too much.

In the 1st run we have at some point 'Strings can be altered!', but on 2nd run it will be just 'Strings altered!' and then even worse. Are you seeing this?

tameemsafi commented 1 year ago

Yes there was a bug in the previous version which is used as the demo on the site. You can see the latest version 2.20.1 working here: https://jsfiddle.net/mv612vrf/1702/

ovicrisan commented 1 year ago

The error is still there on JS Fiddle, just let it run a bit.

YongThePsibor commented 9 months ago

still there. image