typeit icon indicating copy to clipboard operation
typeit copied to clipboard

Spaces causing temporary line break

Open Theeoi opened this issue 1 year ago • 0 comments

I've been seeing a bug on mobile where the cursor is creating a new line while typing a one-liner. In my case it happens when a space is to be typed. The cursor quickly jumps back up again afterwards to type the next word. I managed to capture the bug in the image attached at the bottom.

I can not recreate the effect on desktop so I'm having difficulties troubleshooting myself and thought I would ask here. Any help is very appreciated :)

I'm using a simple setup like this:

<!-- The element of concern -->
<h1 id="typeit">Theodor Blom</h1>

...

<!-- Script imported at the bottom of the html -->
<script src="https://unpkg.com/[email protected]/dist/index.umd.js"></script>
<script>
  new TypeIt("#typeit", {
    speed: 250,
    lifeLike: true,
    waitUntilVisible: true,
  }).go();
</script>

img

Theeoi avatar Feb 07 '24 14:02 Theeoi