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

Cursor position off by one when immediately entering character after click a format btn #752

Closed
abejdaniels opened this issue Jun 17, 2016 · 4 comments

Comments

@abejdaniels
Copy link

Clicking a format then inserting letters quickly after results in the cursor position to lag by 1.

Steps for Reproduction

  1. Visit beta.quilljs.com
  2. Click any type of format
  3. Quickly hit 3-4 keys at the same time

Expected behavior: characters are entered, cursor position is updated properly and is at the end of the string. (If that's where you stopped typing.)

Actual behavior: characters are entered, occasionally the cursor position lags and will not be at the end of the string.

Platforms: All

Version: beta.4

@jhchen
Copy link
Member

jhchen commented Jun 17, 2016

I'm not able to reproduce this. This is certainly all platforms? Not low resourced ones like ios/android?

@abejdaniels
Copy link
Author

Tried it in every browser on my computer. You need to click a format, and immediately starting mashing keys to have it happen every time. It isn't that huge of a bug because it's not like someone presses letters like crazy and expects everything to work.
Click bold, immediately hit 3 keys at the same time. It looks like this: (pipe char = cursor.) as|df
continuing to do so would eventually do this asdafdsfdsafdsa|asfdafdsfdsafdsafdsa, instead of staying at the end of the string, it lags. I am on windows 10 on a relatively fast laptop.

@abejdaniels
Copy link
Author

abejdaniels commented Jun 17, 2016

Here is what it looks like in real time. Excuse me for not selecting for the gif recorder to record mouse.
http://imgur.com/QQxV3ZH

@benbro
Copy link
Contributor

benbro commented Jun 17, 2016

I can reproduce with latest chrome and firefox on windows 7.

  1. Visit beta.quilljs.com
  2. type fast random characters without stopping.
  3. click on the bold button every few seconds while still typing characters fast.

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

3 participants