I work with the following scenario: I have a map of images with hot spots. When you hover over <area> in the image map, display <div class="info-panel"> . This div overlaps the <area> , so the div is hidden on mouseleave <div class="info-panel"> .
This basically works, but in an unusual case, for example, if you go ballistic and move the mouse too fast, the div remains. I think it can be in small cases when <area> and <div> intersect. I would not worry about this, only the client indicated this as a mistake.
The only reliable way I can fix this is to check the mouse move if the info window is displayed. If so, check to see if the mouse is currently located, if not, and then hide it. This ensures that the info window will never be visible if the mouse is not above it.
My question is: how to check if the current mouse position is above the info window? Whereas this is for an exception, not a rule, and I'm not sure Is the info window visible or not?
pingu source share