compupro / latin-annotator

A JS web app that annotates latin text and shows word agreement relationships
GNU General Public License v3.0
0 stars 0 forks source link

Race conditions when definitions downloading and selected word changes #3

Open compupro opened 5 years ago

compupro commented 5 years ago

When the user clicks on a word in a sentence where definitions for words are not already downloaded, there's an asynchronous call to download the definitions and then check if it agrees with the word clicked. If the user clicks on a different word while definitions are being downloaded, it will still attempt to check agreement with the first word clicked, causing the app to show that things agree when they don't anymore.

compupro commented 5 years ago

Also happens with tooltips that show after a definition is downloaded. The tooltip stays and doesn't go away until another tooltip is shown, which is annoying.