On Sunday, August 23, 2020 at 12:56:46 PM UTC+2, Oliver Yasuna wrote: > > For example, the onscroll > <https://www.w3schools.com/jsref/event_onscroll.asp> event could have > been passed an Event <https://www.w3schools.com/jsref/obj_event.asp> or > UIEvent <https://www.w3schools.com/jsref/obj_uievent.asp> and GWT has the > ScrollEvent > <http://www.gwtproject.org/javadoc/latest/com/google/gwt/event/dom/client/ScrollEvent.html> > class > for developers to handle it. But, does GWT give the developer a way to tell > if the event was passed an Event > <https://www.w3schools.com/jsref/obj_event.asp> or UIEvent > <https://www.w3schools.com/jsref/obj_uievent.asp>? This is further > complicated with the Error > <https://www.w3schools.com/jsref/event_onerror.asp>, which can be passed > Event <https://www.w3schools.com/jsref/obj_event.asp>, UIEvent > <https://www.w3schools.com/jsref/obj_uievent.asp>, or ProgressEvent > <https://www.w3schools.com/jsref/obj_progressevent.asp>. > > Thank you, > > Oliver >
My answer on Gitter: > You can use getNativeEvent() to get the actual event, then probably use > instanceof with JsInterop classes (e.g. from Elemental 2) to know whether > it's a UIEvent or something else. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/23948811-7f56-456e-b934-53284f6640e2o%40googlegroups.com.
