posted by caleje on March 10, 2012 | 2 comments
When you mouse over characters in the transcript, the tooltips work nicely. If I understand correctly, when you click a character, the tooltip is supposed to get locked until the user clicks the little "x" in the upper right corner.
I notice that this isn't working correctly. When you click a character, the tooltip shows up with the "x", but clicking it does nothing. Isn't that big a deal when browsing on a computer b/c you can just use mouseover to see all the tooltips, but on a touch interface there's no mouseover, so you always have to click which causes this bug.
Any chance you can fix?
FWIW, looks like what's happening is that save_tooltip() is getting an exception because object_under_editing is empty. A couple fixes that seemed to work were to
1) add the line "object_under_editing=tooltip;" as the last line in onWordClick(). or
2) change the onmouseup to "onmouseup="is_tooltip_locked = 0;hide_tooltip();"
However, I'm pretty sure there's a "right" way to fix this and I bet my "fixes" would break something related to how this code supposed to be used to edit pages, but I figured I'd throw something out there in case it helps.
@caleje,Right now hovering over the word in the browser will show the popup, and clicking on an open popup will add the word to your private wordlist. On touchscreen devices, tapping a word once will pull-up the popup, and tapping on it again will add the word to your private wordlist. I agree that the "close tooltip" button should either work in iOS or we should get rid of it. I'll see what I can do.
Ah, didn't know about that functionality. Got it. So you know, it works like a champ in Firefox (and never has the "close tooltip" button) but it's not working in Chrome or Safari. What happens there is that the tooltip comes up, but then tapping it a second time opens up text boxes on the characters.