Wednesday, June 25, 2014

Re: 'Use capture' equivalent in gwt

OK, Thanks Jens and Thomas, I will use JSNI then.


On Wednesday, 25 June 2014 00:20:22 UTC+2, Thomas Broyer wrote:


On Tuesday, June 24, 2014 6:30:54 PM UTC+2, Thomas Lefort wrote:
In javascript it is possible to decide whether we want to add a listener the bubbling way or the capturing way. Is this also possible with GWT? I have probably overlooked something but I couldn't find anything related in the docs.


It doesn't exist because historically Internet Explorer didn't support it.

You could possibly use EventPreview, but it still works in the bubbling phase, it's just triggered before the event is dispatched to a GWT widget.

If you really need to work in the capture phase, you have no other choice, for now, than to use Elemental or JSNI. 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment