jzohrab / lute

DEPRECATED: LUTE (Learning Using Texts) is a self-hosted web app for learning language through reading, based on Learning with Texts (LWT)
The Unlicense
119 stars 10 forks source link

Hover window sometimes gets stuck #73

Closed Mycheze closed 1 year ago

Mycheze commented 1 year ago

Description

Sometimes, when opening the "side information," the hover window gets stuck open and needs a reload.

To Reproduce

Steps to reproduce the behavior, e.g.:

Unsure of exactly how to cause it

  1. Click on a word to open the side window
  2. Have the look-up take a moment to load
  3. Move your cursor so that there's an overlap between the hover box and the side panel
  4. Hover box gets stuck open

Screenshots

lutebug2 lutebug1

Extra software info, if not already included in the Description:

jzohrab commented 1 year ago

Happens to me too, I've been too lazy to fix it! Ctrl+R "fixes" it. Absolutely no idea why it sometimes hangs around ... thank you for the note about the overlap though, that might be a good clue.

jzohrab commented 1 year ago

Easier reproduce: hover on something, and then only use keyboard to navigate and save. e.g.:

Hover on predefined word:

image

Click it, and the form opens up in the right frame:

image

Hit tab-tab-tab until the focus is on, say, the status, move the status with arrow right or left, and hit return. Form is saved, and the popup remains:

image
jzohrab commented 1 year ago

Fixed in the develop branch -- or at least, it should be. It is fixed for my case (using keyboard nav only), and am assuming that it will be fixed for yours as well.

e.g., click on elephant, hover info shows:

image

Using only keyboard navigation (tab), change the translation, change the status, and hit Return while in the status. Popup is immed. updated and will disappear when cursor is moved:

image

Merged into the develop branch, will launch soon.

jzohrab commented 1 year ago

Fixed in v2.1.2 just launched.