I have this code which fires even if I don't click on anything on the page, just hovering over the page this will trigger:
Event.addNativePreviewHandler(new Event.NativePreviewHandler() {
@Override
public void onPreviewNativeEvent(Event.NativePreviewEvent event) {
switch (event.getTypeInt()) {
case Event.ONCLICK:
$(".hopscotch-bubble").fadeOut(new com.google.gwt.query.client.Function() {
@Override
public void f() {
JSNIHelper.infoNotify("INFO", "Fade out method invoked!");
}
});
}
}
});
I am not entirely sure why this happens, what could be the reason?