monkeytype/frontend/src
Nad Alaba a0c9decc3f
fix(caret): caret not resetting position on quick restart (@nadalaba) (#7038)
- quick restarting immediately after some input makes the caret fail to
reset its position sometimes.


https://github.com/user-attachments/assets/d9e1def5-d8f6-4af2-845c-778c89279849

this happens because the reset of caret's position that should happen on
the callback inside `requestAnimationFrame` in `caret.goTo()` (triggered
in `TestUI.updateWordsWrapperClasses()`) is cancelled by a later call to
`caret.goTo()` (triggered by `TestUI.focusWords()`). However the second
call sets the position directly without stopping previous animation
`$('#caret').stop().animate()`. As a result, the earlier animation
(caused by last input) continues after the reset, if the restart was
done fast enough.

- update some previous comments.
2025-10-27 12:14:26 +01:00
..
html refactor: caret rewrite (@miodec) (#6955) 2025-10-17 15:07:43 +02:00
styles fix(caret): incorrect underline positioning 2025-10-17 16:54:41 +02:00
ts fix(caret): caret not resetting position on quick restart (@nadalaba) (#7038) 2025-10-27 12:14:26 +01:00
404.html
email-handler.html fix: mouseover labels not working on static pages (@fehmer) (#6869) 2025-08-11 21:04:48 +02:00
index.html feat: leaderboard scroll to users position when using the user button (@fehmer) (#6285) 2025-02-20 22:21:24 +01:00
privacy-policy.html fix: typo 2025-09-19 23:05:48 +02:00
security-policy.html fix: mouseover labels not working on static pages (@fehmer) (#6869) 2025-08-11 21:04:48 +02:00
terms-of-service.html fix: mouseover labels not working on static pages (@fehmer) (#6869) 2025-08-11 21:04:48 +02:00