akira-kurogane / furigana-injector

Automatically exported from code.google.com/p/furigana-injector
2 stars 1 forks source link

MouseLeave not reliably closing translation pop-ups #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you move the mouth quickly over a page with furigana, the "translation box" 
may not disappear (the MouseLeave event is probably triggered before the box 
has finished loading). This is inconvenient on pages with a lot of furigana 
where it sometimes takes several tries to get rid of it. However, if you click 
on the extension icon once more to remove the furigana, you can't remove the 
box anymore. Also, the kanji above the box is duplicated.
Note : an easy way to test this is to right click in the box, the move the 
cursor somewhere else.

Original issue reported on code.google.com by akira%ya...@gtempaccount.com on 25 Dec 2010 at 4:19

GoogleCodeExporter commented 9 years ago
A repetitive check (say on a 3s interval) to close pop-ups seems like a good 
idea, so long as a hit test for the mouse's current position compared to the 
pop-up can be implemented in short code.

Original comment by akira%ya...@gtempaccount.com on 25 Dec 2010 at 4:21

GoogleCodeExporter commented 9 years ago

Original comment by akira%ya...@gtempaccount.com on 25 Dec 2010 at 4:22

GoogleCodeExporter commented 9 years ago
Programmed a mousemove event handler (at window scope) to replace unreliable 
mouseleave event. As a result timed the earlier idea to double-check mouseleave 
action not required.

Original comment by akira%ya...@gtempaccount.com on 29 Dec 2010 at 3:19