Tooltip is interfering with mouseEntered/mouseExited events
pavel.safrata at oracle.com
Mon Jun 17 08:15:30 PDT 2013
not having any strong opinion on the desired behavior or needed API,
here are a few comments to the current state:
* Tooltip is a Window, so you should be able to call tooltip.getScene()
or tooltip.getScene().getRoot() and watch for mouse events/hover state there
* Tooltip is a Window so a click-through tooltip is not possible right
now. We can talk about hooking its handlers to the owner control
* If you move the mouse to a tooltip, the owner control gets MouseExited
event and hides the popup (which will be the case unless we introduce a
"mouse transparent window"). So there doesn't seem to be much point in
handling mouse events on the tooltip. The reason why the tooltip is not
hidden immediately after it pops under the mouse is that there is a
weird piece of code there that ignores MouseExited events with the same
coordinates as the previous mouse event had. This looks like a
workaround, and a wrong one, because the control can move out from a
not-moving cursor. I'm going to file a bug against that.
On 15.6.2013 23:43, Pedro Duque Vieira wrote:
> Yes this problems would be solved.
> But I think API wise, there should be a way to check whether the mouse is
> inside a particular tooltip. Also I think it is not possible sometimes to
> get the node that "owns" the tooltip, I think there should be a way to get
> it too.
>> Stepping back slightly, the concern I've raised previously with regard
>> to the modena tooltip is its positioning under the mouse. I think the
>> first thing that should be discussed is whether we can relocate that
>> popup such that it is slightly shifted downwards and to the right so
>> that it doesn't appear directly under the mouse pointer. I think with
>> this resolved the other issues no longer matter - is this correct?
>> -- Jonathan
More information about the openjfx-dev