开发者

MouseOver and MouseOut events does not get fired by a widget

开发者 https://www.devze.com 2023-03-11 01:25 出处:网络
I have two widgets listening for a MouseOutEvent. Problem is that sometimes this events does not get called on both of the widgeth even if you mouse out of them.

I have two widgets listening for a MouseOutEvent. Problem is that sometimes this events does not get called on both of the widgeth even if you mouse out of them. No error is thrown and this is extremely hard to debug. My understanding is that this event is fired by a browser, so I don't understand why this is n开发者_高级运维ot happening. I am registering this event to the widget itself.

Any suggestions will be a great help.

Thanks


Sounds like you might have used addHandler to register to your MouseOverHandler. Widget has two methods for adding event handlers, addDomHandler and addHandler. The first is meant to be used for DomEvents, e.g. MouseOutEvents. It sinks the event on the widget, which means that your listener will get notified (this is only necessary for DomEvents). Those events might not get fired if you do not use addDomHandler to register your handler.

0

上一篇:

:下一篇

精彩评论

暂无评论...
验证码 换一张
取 消