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

fix: caret and word shift on wikipedia (and poetry) funbox (@sanidhyas3s) #5819

Closed
wants to merge 7 commits into from

Conversation

sanidhyas3s
Copy link
Contributor

Description

Fix buggy behaviour when using wikipedia and poetry funbox. The issue was caused when we type faster than words are added and the index update (or some other update) is waiting for it and hence is altered by being triggered later, now in the test logic, we shift adding more words to the end of the function where it is called, hence it should hold any index update.

Tested to fix the bug (when adding words was forced by hardcoding), the bug doesn't exist with this PR, existed without.

Checks

  • Check if any open issues are related to this PR; if so, be sure to tag them below.
  • Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info)
  • Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title.

Closes #5797

@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Aug 24, 2024
Comment on lines +363 to 372
// await for addWord should not hold other actions within this function hence should be called last
if (
Config.mode === "time" ||
Config.mode === "words" ||
Config.mode === "custom" ||
Config.mode === "quote"
) {
await TestLogic.addWord();
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change will break the plus zero funbox because youre updating active element before adding a word.

@Miodec Miodec added the stuck We don't know how to proceed with this label Aug 28, 2024
@Miodec Miodec closed this in 7b4a789 Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend User interface or web stuff stuck We don't know how to proceed with this
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Words and caret shift around on Wikipedia funbox
3 participants