dadler/thumbnail-zoom — Issue #19: Popup sometimes doesn't pop down when move out of thumb
Author: dadler
Created: 2011-12-07 08:53:48+00:00
State: open
Labels: low

The popup sometimes doesn't pop down when the user moves the mouse outside the thumbnail. This happens when the thumbnail image is clipped by a

or other container. Thumbnail Zoom Plus doesn't realize it's clipped, so when it gets an event for exiting the thumb, it thinks it's still inside the thumb.

A possible fix is to look at parent element(s)' bbox and use the intersection.

Or the problem may just go away if we switch to use element identity or a timer to detect spurious events after popup dismissal instead of using the bbox (see big comment in _insideThumbBBox).

In any case, the popup still dismisses when the user moves farther out of the bbox, clicks, or presses Escape.