Tooltip is interfering with mouseEntered/mouseExited events
Pavel Safrata
pavel.safrata at oracle.com
Wed Jun 19 23:37:54 PDT 2013
On 19.6.2013 16:57, Pedro Duque Vieira wrote:
> Hi Pavel,
>
> Thanks for your reply.
>
> Hello,
> 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
>
> That seems to work when the tooltip appears below, but when I move the
> mouse inside the tooltip I get a mouseExited from
> tooltip.getScene.getRoot().
This was explained in my third comment.
Pavel
> Kind regards,
>
>
> --
> Pedro Duque Vieira
>
>
> Hello,
> 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
> handlers somehow.
> * 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.
> Pavel
>
More information about the openjfx-dev
mailing list