Thread:Extension talk:Popups/Suggested feature: popup location based on mouse location

Background: Currently, popup location is based on the element that triggered it. sometimes it's preferrable to use the mouse location instead.

Rationale: two cases come to mind: in both cases (and probably others, too), the "element" location may be far away from the mouse pointer, and popping the popup there can be surprising.
 * 1) the "element" is an internal link that's split (word-wrapped) across 2 lines
 * 2) the "element" is a large image

note that broser's tooltip is typically relative to the mouse pointer, not the element.

the change is not that hard: pass the event to  and to , and in createBox, if  , use event.pageX and event.pageY instead of $el.offset to calculate popup location. i guess you can't to it on "focus", though.

peace.