You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@manolo I tested a lot of different things but tab event is not triggered if the handler is registered before the element is in the DOM. The on function should not be influenced by this fact. Event if some elements are not part of the DOM when the handler is registered the event will be triggered.
I tested:
$(".mytouch", contentList).on("click", new Function() {
@Override
public boolean f(Event ev) {
int index = $(contentList).index($(this).get(0));
GWT.log("div index: "+index);
return true;
}
});
Does not trigger. It only triggers if I call the handler after I inserted mytouchelements in the contentList. This is not so good because I have to do it on each insertion which would register the handler more than once per object.
This:
$(contentList).find("div")
.on("tap", new Function() {
public boolean f(Event ev) {
GWT.log("tap ta112345");
return true;
}
});
is also not working and this
$(".mytouch")
.on("tap", new Function() {
public boolean f(Event ev) {
GWT.log("tap ta112345");
return true;
}
});
I tried to bind tap event to DOM elements in a Cell using UiRenderer. Here is my Cell Class:
This is my UiRenderer ui.xml template:
I tested on my iPhone5 iOS 7.1.1. There where no touches obtained from my CellList. It works on other elements which are not in the list.
The text was updated successfully, but these errors were encountered: