dadler/thumbnail-zoom — Issue #48: Popup displays while mouse outside of document area or lose kbd focus
Author: dadler
Created: 2012-03-07 03:30:15+00:00
State: open

The popup sometimes remains displayed even after the mouse moves outside the popup area, e.g. into the Location Bar. This typically happens when the thumbnail is near the top of the screen, so the mouse is able to move out of the thumb and over the location bar without focusing into any other area of the web page.

The fix may be to watch for focus-out events instead of just focus-in events.

We may also need to detect when we lose keyboard focus due to keyboard navigation or hotkeys, especially since we now have our own hotkeys. EG if the user hits Control+L to type a URL, we don't want his entry of the letter "t" to cause the thumb to display in a new tab.