Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backspace speed overriding Typing speed #15

Open
diegohaz opened this issue Jun 17, 2018 · 1 comment
Open

Backspace speed overriding Typing speed #15

diegohaz opened this issue Jun 17, 2018 · 1 comment

Comments

@diegohaz
Copy link

Hi, @adamjking3. Thank you for this project. I'm using it on the new docs of https://github.com/diegohaz/reas

I'm trying to set different speeds for the typing and backspace, but it seems that backspace speed is overriding typist speed.

Reproduction: https://codesandbox.io/s/k25p7r924v

I was able to fix it with a workaround:

<Typing.Backspace speed={20} count={word.length - 1} />
<Typing.Backspace speed={200} count={1} />

But it would be better if it worked out of the box.

@notadamking
Copy link
Owner

One possible fix for this, would be to only apply that speed for the next x characters, where x is specified by props.count in the Backspace component. Otherwise, adding a Speed component after the Backspace is meant for this purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants